//#region src/Array/first.d.ts /** * # first * * ```ts * function Array.first(target: readonly T[]): T | undefined * ``` * * Returns the first element of `array`, or `undefined` if the array is empty. * * ## Example * * ```ts [data-first] * import { Array } from "@monstermann/array"; * * Array.first([1, 2, 3, 4]); // 1 * ``` * * ```ts [data-last] * import { Array } from "@monstermann/array"; * * pipe([1, 2, 3, 4], Array.first()); // 1 * ``` * */ declare const first: { (): (target: readonly T[]) => T | undefined; (target: readonly T[]): T | undefined; }; //#endregion export { first };