UNPKG

@stewartmac/lotide

Version:

Modular collection of functions that operate on data, namely Arrays and Objects.

9 lines (8 loc) 155 B
const tail = function(inputArray) { if (inputArray.length > 1) { return inputArray.slice(1); } else { return []; } }; module.exports = tail;