-
Notifications
You must be signed in to change notification settings - Fork 0
remove
Subhajit Sahu edited this page Jun 18, 2020
·
16 revisions
lists.remove(x, k);
// x: lists
// k: key
const lists = require('extra-lists');
var x = [['a', 'b', 'c', 'd'], [2, 4, 6, 8]];
lists.remove(x, 'b');
// [ [ 'a', 'c', 'd' ], [ 2, 6, 8 ] ]
lists.remove(x, 'd');
// [ [ 'a', 'b', 'c' ], [ 2, 4, 6 ] ]