UNPKG

@writetome51/array-get-head-tail

Version:

Functions that return either a number of items from the beginning of the array, or the end

5 lines (2 loc) 156 B
export declare const getHead: <T>(numItemsToGet: number, array: T[]) => T[]; export declare const getTail: <T>(numItemsToGet: number, array: T[]) => T[];