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

Method isNodeEnv

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

* Checks if current environment is Node

()

Source from the content-addressed store, hash-verified

669 * Checks if current environment is Node
670 */
671 isNodeEnv() {
672 const isNode = new Function(
673 "try {return this===global;}catch(e){return false;}"
674 );
675 return isNode();
676 }
677
678 /**
679 * Remove NaN values from 1D array

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected