-
Notifications
You must be signed in to change notification settings - Fork 1
drop
Subhajit Sahu edited this page Jun 13, 2020
·
15 revisions
Removes first n values.
set.drop(x, [n]);
// x: a set
// n: number of values (1)
const map = require('extra-map');
var x = new Map([['a', 1], ['b', 2], ['c', 3], ['d', 4], ['e', 5]]);
map.drop(x, 2);
// Map(3) { 'c' => 3, 'd' => 4, 'e' => 5 }
map.drop(x, 3);
// Map(2) { 'd' => 4, 'e' => 5 }