1-liners
Version:
Useful oneliners and shorthand functions
25 lines (21 loc) • 354 B
JavaScript
/**
* @module 1-liners/tail
*
* @description
*
* Returns the tail of an array
*
* @example
*
* const tail = require('1-liners/tail');
*
* tail([1, 2, 3]); // => [2, 3]
*
*/
;
exports.__esModule = true;
exports["default"] = function (_ref) {
var tail = _ref.slice(1);
return tail;
};
module.exports = exports["default"];