UNPKG

@newdash/newdash

Version:

javascript/typescript utility library

14 lines (13 loc) 582 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.uniqWith = void 0; const baseUniq_1 = __importDefault(require("./.internal/baseUniq")); function uniqWith(array, comparator) { comparator = typeof comparator == "function" ? comparator : undefined; return (array && array.length) ? (0, baseUniq_1.default)(array, undefined, comparator) : []; } exports.uniqWith = uniqWith; exports.default = uniqWith;