@adaptabletools/adaptable-cjs
Version:
Powerful data-agnostic HTML5 AG Grid extension which provides advanced, cutting-edge functionality to meet all DataGrid requirements
13 lines (12 loc) • 446 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = uniq;
/**
* Creates a duplicate-free version of an array, using SameValueZero for equality comparisons,
* in which only the first occurrence of each element is kept. The order of result values is
* determined by the order they occur in the array.
* Drop-in replacement for lodash/uniq.
*/
function uniq(array) {
return [...new Set(array)];
}