time-to-botec/squiggle/node_modules/@stdlib/assert/has-uint8clampedarray-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

2.1 KiB

Uint8ClampedArray Support

Detect native Uint8ClampedArray support.

Usage

var hasUint8ClampedArraySupport = require( '@stdlib/assert/has-uint8clampedarray-support' );

hasUint8ClampedArraySupport()

Detects if a runtime environment supports Uint8ClampedArray.

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

Examples

var hasUint8ClampedArraySupport = require( '@stdlib/assert/has-uint8clampedarray-support' );

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

CLI

Usage

Usage: has-uint8clampedarray-support [options]

Options:

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

Examples

$ has-uint8clampedarray-support
<boolean>