UNPKG

@extra-array/remove-path-update

Version:

Removes value at path in a nested array.

11 lines (6 loc) 172 B
const array = require("extra-array"); var x = [[2, 4], 6, 8]; array.removePath$(x, [1], 60); x; array.removePath$(x, [0, 1], 40); array.removePath$(x, [0, 1, 2], 100);