@newdash/newdash
Version:
javascript/typescript utility library
17 lines (16 loc) • 334 B
TypeScript
/**
* Gets all but the first element of `array`.
*
* @since 5.13.0
* @category Array
* @param {Array} array The array to query.
* @returns {Array} Returns the slice of `array`.
* @example
*
* ```js
* tail([1, 2, 3])
* // => [2, 3]
* ```
*/
export declare function tail<T>(array: Array<T>): Array<T>;
export default tail;