Uint8ClampedArray Support

Detect native Uint8ClampedArray support.

Usage

var hasUint8ClampedArraySupport = require( '@stdlib/utils/detect-uint8clampedarray-support' );

hasUint8ClampedArraySupport()

Detects if a runtime environment supports Uint8ClampedArray.

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

Examples

var hasUint8ClampedArraySupport = require( '@stdlib/utils/detect-uint8clampedarray-support' );

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

CLI

Usage

Usage: hasuint8clampedarrays [options]

Options:

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

Examples

$ hasuint8clampedarrays
<boolean>