Skip to content
Subhajit Sahu edited this page May 3, 2023 · 17 revisions

Get values except first.

Similar: head, tail, init, last.


function tail(x)
// x: an array
const xarray = require('extra-array');

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

xarray.tail([1]);
// → []


References

Clone this wiki locally