-
Notifications
You must be signed in to change notification settings - Fork 1
tail
Subhajit Sahu edited this page Jun 13, 2020
·
15 revisions
Gets set without the first value.
Similar: [head], [tail].
set.tail(x);
// x: a set
const map = require('extra-map');
var x = new Map([['a', 1], ['b', 2], ['c', 3]]);
map.tail(x);
// Map(2) { 'b' => 2, 'c' => 3 }
var x = new Map([['a', 1]]);
map.tail(x);
// Map(0) {}