(value: unknown)
| 246 | /* eslint-enable complexity */ |
| 247 | |
| 248 | function getConstructorName(value: unknown): string { |
| 249 | const prototype: Prototype | null = Object.getPrototypeOf(value); |
| 250 | |
| 251 | return prototype?.constructor ? prototype.constructor.name : 'null prototype'; |
| 252 | } |
| 253 | |
| 254 | /** Calculates bytes size of input string */ |
| 255 | function utf8Length(value: string): number { |