/** * Creates a slice of array with n elements taken from the beginning. * * @template T * @param {ArrayLike | null | undefined} array - The array to query. * @param {number} [n=1] - The number of elements to take. * @returns {T[]} Returns the slice of array. * * @example * take([1, 2, 3]); * // => [1] * * @example * take([1, 2, 3], 2); * // => [1, 2] * * @example * take([1, 2, 3], 5); * // => [1, 2, 3] * * @example * take([1, 2, 3], 0); * // => [] */ declare function take(array: ArrayLike | null | undefined, n?: number): T[]; export { take };