UNPKG

1-liners

Version:

Useful oneliners and shorthand functions

16 lines (15 loc) 225 B
/** * @module 1-liners/tail * * @description * * Returns the tail of an array * * @example * * const tail = require('1-liners/tail'); * * tail([1, 2, 3]); // => [2, 3] * */ export default ([,...tail]) => tail;