isNode es-toolkit
Checks if the current runtime environment is Node.js.
Usage
isNode()
Use isNode when you want to check if the current code is running in a Node.js environment. It's useful for verifying the environment before using Node.js-specific APIs.
It's also useful when conditionally using Node.js modules:
Returns
Returns true if the current environment is Node.js, false otherwise.
Source: es-toolkit
Re-exported verbatim from es-toolkit. Implementation, edge cases, and performance behavior are owned upstream. This page mirrors the documentation at the pinned version; the linked source is authoritative.