Skip to content

Latest commit

 

History

History
50 lines (28 loc) · 717 Bytes

File metadata and controls

50 lines (28 loc) · 717 Bytes

isWebWorker

Check if the runtime is a web worker.

Usage

var isWebWorker = require( '@stdlib/utils/is-web-worker' );

isWebWorker

Boolean indicating if the runtime is a web worker.

var bool = isWebWorker;
// returns <boolean>

Examples

var isWebWorker = require( '@stdlib/utils/is-web-worker' );

console.log( isWebWorker );
// => <boolean>