* Get a string representation of the ID for use in composite keys.
(value: any)
| 115 | * Get a string representation of the ID for use in composite keys. |
| 116 | */ |
| 117 | getStringId(value: any): string { |
| 118 | if (value === null) return `null` |
| 119 | if (value === undefined) return `undefined` |
| 120 | if (typeof value !== `object`) return `str_${String(value)}` |
| 121 | |
| 122 | return `obj_${this.getId(value)}` |
| 123 | } |
| 124 | } |
| 125 | |
| 126 | /** |
no test coverage detected