Skip to content
Subhajit Sahu edited this page Dec 28, 2022 · 16 revisions

Remove value at key.

Similar: get, set, remove.


function remove(x, k)
// x: ilists
// k: key
const xilists = require('extra-ilists');

var x = [['a', 'b', 'c', 'd'], [2, 4, 6, 8]];
xilists.remove(x, 'b');
// → [ [ 'a', 'c', 'd' ], [ 2, 6, 8 ] ]

xilists.remove(x, 'd');
// → [ [ 'a', 'b', 'c' ], [ 2, 4, 6 ] ]


References

Clone this wiki locally