Home Reference Source

ts_temp/array/tail.js

import slice from './slice';
/**
 * Returns all but the first element of the given array.
 *
 * @param {Array} arr
 * @return {*}
 * @example
 *
 *      tail(['fi', 'fo', 'fum']); //=> ['fo', 'fum']
 *      tail([]); //=> []
 */
export default ((arr) => slice(1, arr.length, arr));