Remove something from an Array
import { array } from "@rjweb/utils"const arr = [1, 2, 3, 4, 5]array.remove(arr, 'index', 1) // [1, 3, 4, 5]array.remove(arr, 'value', 1) // [2, 3, 4, 5] Copy
import { array } from "@rjweb/utils"const arr = [1, 2, 3, 4, 5]array.remove(arr, 'index', 1) // [1, 3, 4, 5]array.remove(arr, 'value', 1) // [2, 3, 4, 5]
1.0.0
nodejs, browser
Remove something from an Array