IOTConnect-Web/node_modules/fast-unique-numbers/build/es2019/factories/add-unique-number.js
2024-05-09 09:49:52 +08:00

8 lines
240 B
JavaScript

export const createAddUniqueNumber = (generateUniqueNumber) => {
return (set) => {
const number = generateUniqueNumber(set);
set.add(number);
return number;
};
};
//# sourceMappingURL=add-unique-number.js.map