-
Notifications
You must be signed in to change notification settings - Fork 1
tail
Subhajit Sahu edited this page Feb 3, 2021
·
20 revisions
Get values except first.
function tail(x)
// x: an iterable
const xiterable = require('extra-iterable');
var x = [1, 2, 3];
[...xiterable.tail(x)];
// → [2, 3]
var x = [1];
[...xiterable.tail(x)];
// → []