Skip to content

remove$

Subhajit Sahu edited this page Jun 20, 2020 · 15 revisions

Removes value at index. 🏃 📼 📦 🌔 📒

Similar: get, set, remove.

array.remove$(x, i);
// x: an array (updated)
// i: index
// --> x
const iterable = require('extra-iterable');

var x = [1, 2, 3, 4, 5];
[...iterable.remove(x, 2)];
// [ 1, 2, 4, 5 ]

references

Clone this wiki locally