* Checks if current environment is Browser
()
| 659 | * Checks if current environment is Browser |
| 660 | */ |
| 661 | isBrowserEnv() { |
| 662 | const isBrowser = new Function( |
| 663 | "try {return this===window;}catch(e){ return false;}" |
| 664 | ); |
| 665 | return isBrowser(); |
| 666 | } |
| 667 | |
| 668 | /** |
| 669 | * Checks if current environment is Node |