time-to-botec/squiggle/node_modules/@stdlib/assert/has-dataview-support/README.md
NunoSempere b6addc7f05 feat: add the node modules
Necessary in order to clearly see the squiggle hotwiring.
2022-12-03 12:44:49 +00:00

1.9 KiB

DataView Support

Detect native DataView support.

Usage

var hasDataViewSupport = require( '@stdlib/assert/has-dataview-support' );

hasDataViewSupport()

Detects if a runtime environment supports DataView.

var bool = hasDataViewSupport();
// returns <boolean>

Examples

var hasDataViewSupport = require( '@stdlib/assert/has-dataview-support' );

var bool = hasDataViewSupport();
if ( bool ) {
    console.log( 'Environment has DataView support.' );
} else {
    console.log( 'Environment lacks DataView support.' );
}

CLI

Usage

Usage: has-dataview-support [options]

Options:

  -h,    --help                Print this message.
  -V,    --version             Print the package version.

Examples

$ has-dataview-support
<boolean>