Skip to content
Subhajit Sahu edited this page Jun 17, 2020 · 14 revisions

Gets map without the first entry. 🏃 📼 📦 🌔 📒

Similar: head, tail.

map.tail(x);
// x: a map
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) {}

references

Clone this wiki locally