Skip to content
Subhajit Sahu edited this page Dec 22, 2022 · 14 revisions

Get values except first.

Similar: head, tail.


function tail(x)
// x: an iterable
const ientries = require('extra-ientries');

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

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


References

Clone this wiki locally