Skip to content

Commit feb1b44

Browse files
committed
modified: src/index.ts
1 parent a0eb353 commit feb1b44

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/index.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,7 @@ export default (
8585
| undefined,
8686
index = the[keyIndex] as number,
8787
siblings = the[keySiblings] as Record<string, unknown>[];
88-
const id = ((performance.now() * Math.random()) % 1)
89-
.toString(36)
90-
.slice(2);
88+
const id = (Date.now() % Math.random()).toString(36).slice(2);
9189
switch (true) {
9290
case !!the[keyParent]:
9391
siblings.splice(index + 1, 0, { [keyId]: id });

0 commit comments

Comments
 (0)