Skip to content

Function: canUseDom()

ts
function canUseDom(): boolean;

Returns true if the DOM is available (browser with a functional document).

Returns

boolean

Example

ts
canUseDom() // true in browser environments

Since

1.0.0

Released under the MIT License.