eas-cli
Version:
EAS command line tool
15 lines (14 loc) • 372 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
function uniqBy(list, getKey) {
const uniqueValues = new Set();
const result = [];
for (const i of list) {
if (!uniqueValues.has(getKey(i))) {
result.push(i);
uniqueValues.add(getKey(i));
}
}
return result;
}
exports.default = uniqBy;
;