We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f2473b commit aabc3dcCopy full SHA for aabc3dc
src/common/codec.ts
@@ -3,7 +3,7 @@ import type {Id} from '../@types/index.d.ts';
3
import {arrayMap, arrayReduce} from './array.ts';
4
import {mapGet, mapNew} from './map.ts';
5
import {GLOBAL, math, mathFloor} from './other.ts';
6
-import {strSplit} from './strings.ts';
+import {EMPTY_STRING, strSplit} from './strings.ts';
7
8
const MASK6 = 63;
9
const ENCODE = /* @__PURE__ */ strSplit(
@@ -29,5 +29,5 @@ export const getUniqueId: typeof getUniqueIdDecl = (length = 16): Id =>
29
arrayReduce<number, Id>(
30
getRandomValues(new Uint8Array(length)) as any,
31
(uniqueId, number) => uniqueId + encode(number),
32
- '',
+ EMPTY_STRING,
33
);
0 commit comments