Skip to content
wolfram77 edited this page Mar 31, 2020 · 20 revisions

Gets values except first.

Similar: head, tail, init, last.

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

var x = [1, 2, 3];
[...iterable.tail(x)];
// [2, 3]

var x = [1];
[...iterable.tail(x)];
// []

references

Clone this wiki locally