Foundations.EnvironmentUtils

This namespace contains boolean functions about an app or service's environment.


EnvironmentUtils.runtime

Syntax

string EnvironmentUtils.runtime(); 

Parameters

None.

Returns

"node" (node.js) or "browser" (Mojo)


EnvironmentUtils.isBrowser

Syntax

EnvironmentUtils.isBrowser(); 

Parameters

None.

Returns

true or false


EnvironmentUtils.isNode

Syntax

EnvironmentUtils.isNode(); 

Parameters

None.

Returns

true or false