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

Gets values except first.

Similar: head, tail, init, last.

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

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

[...iterable.tail([1])];
// []

references

Clone this wiki locally