Skip to content
Subhajit Sahu edited this page Feb 4, 2021 · 14 revisions

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

Similar: head, tail.

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

var x = [["a", 1], ["b", 2], ["c", 3]];
[...entries.tail(x)];
// [ [ "b", 2 ], [ "c", 3 ] ]

var x = [["a", 1]];
[...entries.tail(x)];
// []

references

Clone this wiki locally