//#region src/Array/unique.d.ts /** * # unique * * ```ts * function Array.unique(target: readonly T[]): readonly T[] * ``` * * Returns a new array with only the unique elements from `target`, preserving the order of first occurrence. * * ## Example * * ```ts [data-first] * import { Array } from "@monstermann/array"; * * Array.unique([1, 2, 2, 3, 1]); // [1, 2, 3] * ``` * * ```ts [data-last] * import { Array } from "@monstermann/array"; * * pipe([1, 2, 2, 3, 1], Array.unique()); // [1, 2, 3] * ``` * */ declare const unique: { (): (target: T[]) => T[]; (): (target: readonly T[]) => readonly T[]; (target: T[]): T[]; (target: readonly T[]): readonly T[]; }; //#endregion export { unique };