Skip to content
Subhajit Sahu edited this page Feb 3, 2021 · 20 revisions

Get values except first.

Similar: head, tail, init, last.


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)]; // → []


References

Clone this wiki locally