@sentry/core
Version:
Base implementation for all Sentry JavaScript SDKs
13 lines (12 loc) • 361 B
JavaScript
// 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