|
Last change
on this file was a762898, checked in by istevanoska <ilinastevanoska@…>, 5 months ago |
|
Added visualizations
|
-
Property mode
set to
100644
|
|
File size:
604 bytes
|
| Line | |
|---|
| 1 | import { ValueIteratee } from '../_internal/ValueIteratee.mjs';
|
|---|
| 2 |
|
|---|
| 3 | /**
|
|---|
| 4 | * Creates a duplicate-free version of an array, using an optional transform function.
|
|---|
| 5 | *
|
|---|
| 6 | * @template T
|
|---|
| 7 | * @param {ArrayLike<T> | null | undefined} array - The array to inspect.
|
|---|
| 8 | * @param {ValueIteratee<T>} iteratee - The transform function or property name to get values from.
|
|---|
| 9 | * @returns {T[]} Returns the new duplicate-free array.
|
|---|
| 10 | *
|
|---|
| 11 | * @example
|
|---|
| 12 | * uniqBy([2.1, 1.2, 2.3], Math.floor);
|
|---|
| 13 | * // => [2.1, 1.2]
|
|---|
| 14 | */
|
|---|
| 15 | declare function uniqBy<T>(array: ArrayLike<T> | null | undefined, iteratee: ValueIteratee<T>): T[];
|
|---|
| 16 |
|
|---|
| 17 | export { uniqBy };
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.