Remove value from array
从数组中移除值
also see removeBy
the array
the value to remove - 待移除的值
true
false
const arr = [1, 2, 3]remove(arr, 2) // => trueconsole.log(arr) // => [1, 3]remove(arr, 4) // => false Copy
const arr = [1, 2, 3]remove(arr, 2) // => trueconsole.log(arr) // => [1, 3]remove(arr, 4) // => false
Remove value from array
从数组中移除值
also see removeBy