* Checks whether given value is an instance of the given built-in class. * * @param wat The value to be checked * @param className * @returns A boolean representing the result.
(wat: unknown, className: string)
| 34 | * @returns A boolean representing the result. |
| 35 | */ |
| 36 | function isBuiltin(wat: unknown, className: string): boolean { |
| 37 | return objectToString.call(wat) === `[object ${className}]`; |
| 38 | } |
| 39 | |
| 40 | /** |
| 41 | * Checks whether given value's type is ErrorEvent |
no test coverage detected