JS Utils Kit
    Preparing search index...

    Variable isNodeConst

    isNode: boolean = ...

    Checks if the current runtime environment is Node.js.

    • It is useful to conditionally execute server-side logic.
    • It detects the Node.js environment by verifying the presence of the global process object and its versions.node property.

    true if running in Node.js, otherwise false.

    if (isNode) {
    console.log('Running in Node.js environment');
    }