Removes or replaces existing values.
:package:
:smiley_cat:
:running:
:vhs:
:moon:
:scroll:
:newspaper:
:blue_book:
This is part of package extra-iterable.
This is browserified, minified version of @extra-iterable/splice.
It is exported as global variable iterable_splice.
CDN: unpkg, jsDelivr.
iterable.splice(x, [i], [n], ...vs);
const iterable = require("extra-iterable");
var x = [1, 2, 3, 4, 5];
[...iterable.splice(x, 2)];
[...iterable.splice(x, 2, 2)];
[...iterable.splice(x, 2, 2, 30, 40)];
References