FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

remove · nodef/extra-array Wiki · GitHub

Subhajit Sahu edited this page May 3, 2023 · 15 revisions

Remove value at index.

Alternatives: remove, remove$, removePath$.
Similar: get, set, remove.


function remove(x, i)
// x: an array
// i: index
const xarray = require('extra-array');

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


References

Wiki pages Pages 196

Clone this wiki locally


Back | FazBrowse Home | New Git URL