MCPcopy Create free account
hub / github.com/javascriptdata/danfojs / isBrowserEnv

Method isBrowserEnv

src/danfojs-base/shared/utils.ts:661–666  ·  view source on GitHub ↗

* Checks if current environment is Browser

()

Source from the content-addressed store, hash-verified

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

Callers 2

plotMethod · 0.80
plotMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected