declare global { interface Array { /** * Returns a duplicate-free version of the array, * in which only the first occurrence of each element is kept (using `equals` for equality comparisons). * * @example * ```typescript * const arr = [1, 2, 3, 1, 2, 3, { a: [2], c: { d: 10 } }, , { a: [2], c: { d: 10 } }]; * unique(arr); // => [1, 2, 3, { a: [2], c: { d: 10 } }] * ``` */ unique(): T[]; } interface ReadonlyArray { /** * Returns a duplicate-free version of the array, * in which only the first occurrence of each element is kept (using `equals` for equality comparisons). * * @example * ```typescript * const arr = [1, 2, 3, 1, 2, 3, { a: [2], c: { d: 10 } }, , { a: [2], c: { d: 10 } }]; * unique(arr); // => [1, 2, 3, { a: [2], c: { d: 10 } }] * ``` */ unique(): T[]; } } export {}; //# sourceMappingURL=unique.d.ts.map