-
Notifications
You must be signed in to change notification settings - Fork 1
remove
Subhajit Sahu edited this page Feb 3, 2021
·
10 revisions
Remove value at index.
function remove(x, i)
// x: an iterable
// i: index
const xiterable = require('extra-iterable');
var x = [1, 2, 3, 4, 5];
[...xiterable.remove(x, 2)];
// → [1, 2, 4, 5]