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

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

Similar: head, tail.

object.tail(x);
// x: an object
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