(obj: any, constructor: Function)
| 72 | } |
| 73 | |
| 74 | function isTypedArray(obj: any, constructor: Function): boolean { |
| 75 | try { |
| 76 | return obj instanceof constructor || Object.prototype.toString.call(obj) === `[object ${constructor.name}]`; |
| 77 | } catch (error) { |
| 78 | return false; |
| 79 | } |
| 80 | } |
| 81 | |
| 82 | function isArrayBuffer(obj: any): obj is ArrayBuffer { |
| 83 | try { |
no test coverage detected
searching dependent graphs…