Float32Array Support

Detect native Float32Array support.

Usage

var hasFloat32ArraySupport = require( '@stdlib/utils/detect-float32array-support' );

hasFloat32ArraySupport()

Detects if a runtime environment supports Float32Array.

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

Examples

var hasFloat32ArraySupport = require( '@stdlib/utils/detect-float32array-support' );

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

CLI

Usage

Usage: hasfloat32arrays [options]

Options:

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

Examples

$ hasfloat32arrays
<boolean>