(key: any)
| 192 | : /* istanbul ignore next */ Object.getOwnPropertyNames |
| 193 | |
| 194 | export function stringifyKey(key: any): string { |
| 195 | if (typeof key === "string") { |
| 196 | return key |
| 197 | } |
| 198 | if (typeof key === "symbol") { |
| 199 | return key.toString() |
| 200 | } |
| 201 | return new String(key).toString() |
| 202 | } |
| 203 | |
| 204 | export function toPrimitive(value: any) { |
| 205 | return value === null ? null : typeof value === "object" ? "" + value : value |