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 5659fbc commit 29bff02Copy full SHA for 29bff02
src/index.ts
@@ -85,7 +85,9 @@ export default (
85
| undefined,
86
index = the[keyIndex] as number,
87
siblings = the[keySiblings] as Record<string, unknown>[];
88
- const id = Date.now().toString(36);
+ const id = ((performance.now() * Math.random()) % 1)
89
+ .toString(36)
90
+ .slice(2);
91
switch (true) {
92
case !!the[keyParent]:
93
siblings.splice(index + 1, 0, { [keyId]: id });
0 commit comments