MCPcopy Index your code
hub / github.com/ygs-code/vue / remove

Function remove

vue.js:174–181  ·  view source on GitHub ↗

* Remove an item from an array * //删除数组

(arr, item)

Source from the content-addressed store, hash-verified

172 * //删除数组
173 */
174 function remove(arr, item) {
175 if (arr.length) {
176 var index = arr.indexOf(item);
177 if (index > -1) {
178 return arr.splice(index, 1)
179 }
180 }
181 }
182
183 /**
184 * Check whether the object has the property.

Callers 6

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

Calls 1

removeNodeFunction · 0.85

Tested by

no test coverage detected