|
Last change
on this file since ba17441 was a762898, checked in by istevanoska <ilinastevanoska@…>, 5 months ago |
|
Added visualizations
|
-
Property mode
set to
100644
|
|
File size:
389 bytes
|
| Line | |
|---|
| 1 | import { uniqWith as uniqWith$1 } from '../../array/uniqWith.mjs';
|
|---|
| 2 | import { uniq } from './uniq.mjs';
|
|---|
| 3 | import { isArrayLike } from '../predicate/isArrayLike.mjs';
|
|---|
| 4 |
|
|---|
| 5 | function uniqWith(arr, comparator) {
|
|---|
| 6 | if (!isArrayLike(arr)) {
|
|---|
| 7 | return [];
|
|---|
| 8 | }
|
|---|
| 9 | return typeof comparator === 'function' ? uniqWith$1(Array.from(arr), comparator) : uniq(Array.from(arr));
|
|---|
| 10 | }
|
|---|
| 11 |
|
|---|
| 12 | export { uniqWith };
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.