@ecomplus/utils
Version:
JS utility functions to E-Com Plus (not only) related apps
16 lines • 405 B
TypeScript
export default randomObjectId;
/**
* @method
* @memberof ecomUtils
* @name randomObjectId
* @description Generate a random object id with 24 chars hexadecimal string.
* @returns {string & { length: 24 }}
*
* @example
* ecomUtils.randomObjectId()
* // => '561025156443695764000000'
*/
declare function randomObjectId(): string & {
length: 24;
};
//# sourceMappingURL=random-object-id.d.ts.map