//#region src/array/take.d.ts /** * Takes the first n elements from an array * @param array The array to process * @param n The number of elements to take * @returns A new array with the first n elements * @example * take([1, 2, 3, 4, 5], 2); // [1, 2] * take([1, 2, 3], 5); // [1, 2, 3] */ declare function take(array: T[], n?: number): T[]; //#endregion export { take }; //# sourceMappingURL=take.d.cts.map