(object: any)
| 34 | const NAME = Symbol.toStringTag; |
| 35 | |
| 36 | export const isBlob = (object: any) => |
| 37 | typeof object === 'object' && |
| 38 | typeof object.arrayBuffer === 'function' && |
| 39 | typeof object.type === 'string' && |
| 40 | typeof object.stream === 'function' && |
| 41 | typeof object.constructor === 'function' && |
| 42 | /^(Blob|File)$/.test(object[NAME]); |
| 43 | |
| 44 | const getFooter = (boundary: string) => `${dashes}${boundary}${dashes}${carriage.repeat(2)}`; |
| 45 |
no outgoing calls
no test coverage detected
searching dependent graphs…