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

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

Similar: head, tail.

entries.tail(x);
// x: entries
const entries = require('extra-entries');

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