|
Last change
on this file was a762898, checked in by istevanoska <ilinastevanoska@…>, 5 months ago |
|
Added visualizations
|
-
Property mode
set to
100644
|
|
File size:
500 bytes
|
| Line | |
|---|
| 1 | 'use strict';
|
|---|
| 2 |
|
|---|
| 3 | Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|---|
| 4 |
|
|---|
| 5 | const uniqWith$1 = require('../../array/uniqWith.js');
|
|---|
| 6 | const uniq = require('./uniq.js');
|
|---|
| 7 | const isArrayLike = require('../predicate/isArrayLike.js');
|
|---|
| 8 |
|
|---|
| 9 | function uniqWith(arr, comparator) {
|
|---|
| 10 | if (!isArrayLike.isArrayLike(arr)) {
|
|---|
| 11 | return [];
|
|---|
| 12 | }
|
|---|
| 13 | return typeof comparator === 'function' ? uniqWith$1.uniqWith(Array.from(arr), comparator) : uniq.uniq(Array.from(arr));
|
|---|
| 14 | }
|
|---|
| 15 |
|
|---|
| 16 | exports.uniqWith = uniqWith;
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.