UNPKG

@signaldb/core

Version:

SignalDB is a client-side database that provides a simple MongoDB-like interface to the data with first-class typescript support to achieve an optimistic UI. Data persistence can be achieved by using storage providers that store the data through a JSON in

13 lines (12 loc) 288 B
//#region src/utils/randomId.ts /** * creates a random id * @returns a random string of 16 characters * @example * randomId() // '1234567890abcdef' */ function randomId() { return Math.floor(Math.random() * 0x16345785d8a0000).toString(16); } //#endregion export { randomId as default };