-
Notifications
You must be signed in to change notification settings - Fork 3
remove
Subhajit Sahu edited this page Jun 12, 2020
·
11 revisions
Alternatives: [remove], [remove$].
Similar: [get], [set], [remove].
array.set(x, i, v);
// x: an array
// i: index
// v: valueconst object = require('extra-object');
var x = {a: 2, b: 4, c: 6, d: 8};
object.remove(x, 'b');
// { a: 2, c: 6, d: 8 }
object.remove(x, 'd');
// { a: 2, b: 4, c: 6 }