MCPcopy
hub / github.com/vuejs/core / remove

Function remove

packages/shared/src/general.ts:26–31  ·  view source on GitHub ↗
(arr: T[], el: T)

Source from the content-addressed store, hash-verified

24export const extend: typeof Object.assign = Object.assign
25
26export const remove = <T>(arr: T[], el: T): void => {
27 const i = arr.indexOf(el)
28 if (i > -1) {
29 arr.splice(i, 1)
30 }
31}
32
33const hasOwnProperty = Object.prototype.hasOwnProperty
34export const hasOwn = (

Callers 3

watchHandleFunction · 0.90
doSetFunction · 0.90
injectToKeepAliveRootFunction · 0.90

Calls 1

indexOfMethod · 0.80

Tested by

no test coverage detected