()
| 5 | */ |
| 6 | |
| 7 | export function createIdGenerator() { |
| 8 | let i = 1; |
| 9 | return () => { |
| 10 | if (i === Number.MAX_SAFE_INTEGER) { |
| 11 | i = 0; |
| 12 | } |
| 13 | return i++; |
| 14 | }; |
| 15 | } |
| 16 | |
| 17 | export const stableIdSymbol = Symbol('stableIdSymbol'); |
| 18 |
no outgoing calls
no test coverage detected
searching dependent graphs…