UNPKG

@arrows/array

Version:
11 lines (10 loc) 258 B
declare type ButLast_ = <T>(arr: T[]) => T[]; /** * Creates a new array from the initial one, without the last element. * * @param arr Initial array * @returns New array */ declare const butLast_: ButLast_; export { butLast_ }; export default butLast_;