UNPKG

@sentry/core

Version:
13 lines (12 loc) • 361 B
// src/utils/array.ts /** * Return a new array with duplicate values removed, preserving first-occurrence order. * * @param input the array to deduplicate * @returns a new array containing each distinct value once, in the order it first appeared */ function uniq(input) { return Array.from(new Set(input)); } export { uniq }; //# sourceMappingURL=array.js.map