MCPcopy Index your code
hub / github.com/TruthHun/BookStack / remove

Function remove

static/vuejs/vue.runtime.common.js:56–63  ·  view source on GitHub ↗

* Remove an item from an array

(arr, item)

Source from the content-addressed store, hash-verified

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

Callers 5

wrappedHookFunction · 0.70
lifecycleMixinFunction · 0.70
registerRefFunction · 0.70
removeTransitionClassFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected