source: node_modules/es-toolkit/dist/compat/array/uniqWith.mjs@ ba17441

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 
1import { uniqWith as uniqWith$1 } from '../../array/uniqWith.mjs';
2import { uniq } from './uniq.mjs';
3import { isArrayLike } from '../predicate/isArrayLike.mjs';
4
5function 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
12export { uniqWith };
Note: See TracBrowser for help on using the repository browser.