MCPcopy
hub / github.com/HumanSignal/label-studio / remove

Function remove

docs/themes/htx/source/js/vue.js:136–143  ·  view source on GitHub ↗

* Remove an item from an array

(arr, item)

Source from the content-addressed store, hash-verified

134 * Remove an item from an array
135 */
136 function remove(arr, item) {
137 if (arr.length) {
138 var index = arr.indexOf(item);
139 if (index > -1) {
140 return arr.splice(index, 1);
141 }
142 }
143 }
144
145 /**
146 * Check whether the object has the property.

Callers 6

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

Calls 1

removeNodeFunction · 0.85

Tested by

no test coverage detected