(func: Function)
| 94 | */ |
| 95 | // eslint-disable-next-line @typescript-eslint/ban-types |
| 96 | export function isNativeFunction(func: Function): boolean { |
| 97 | return func && /^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(func.toString()); |
| 98 | } |
| 99 | |
| 100 | /** |
| 101 | * Tells whether current environment supports Fetch API natively |
no test coverage detected