MCPcopy Create free account
hub / github.com/TruthHun/BookStack / remove

Function remove

static/vuejs/vue.js:60–67  ·  view source on GitHub ↗

* Remove an item from an array

(arr, item)

Source from the content-addressed store, hash-verified

58 * Remove an item from an array
59 */
60function remove (arr, item) {
61 if (arr.length) {
62 var index = arr.indexOf(item);
63 if (index > -1) {
64 return arr.splice(index, 1)
65 }
66 }
67}
68
69/**
70 * Check whether the object has the property.

Callers 5

vue.jsFile · 0.70
wrappedHookFunction · 0.70
lifecycleMixinFunction · 0.70
registerRefFunction · 0.70
removeTransitionClassFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected