source: node_modules/es-toolkit/dist/compat/array/uniqWith.js

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
3Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
5const uniqWith$1 = require('../../array/uniqWith.js');
6const uniq = require('./uniq.js');
7const isArrayLike = require('../predicate/isArrayLike.js');
8
9function 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
16exports.uniqWith = uniqWith;
Note: See TracBrowser for help on using the repository browser.