//#region src/Array/dropLast.d.ts /** * # dropLast * * ```ts * function Array.dropLast( * target: readonly T[], * amount: number, * ): readonly T[] * ``` * * Removes `amount` of elements from the end of the `target` array. * * ## Example * * ```ts [data-first] * import { Array } from "@monstermann/array"; * * Array.dropLast([1, 2, 3, 4, 5], 2); // [1, 2, 3] * ``` * * ```ts [data-last] * import { Array } from "@monstermann/array"; * * pipe([1, 2, 3, 4, 5], Array.dropLast(2)); // [1, 2, 3] * ``` * */ declare const dropLast: { (amount: number): (target: T[]) => T[]; (amount: number): (target: readonly T[]) => readonly T[]; (target: T[], amount: number): T[]; (target: readonly T[], amount: number): readonly T[]; }; //#endregion export { dropLast };