Float32Array Support
Detect native
Float32Array
support.
Usage
var hasFloat32ArraySupport = require( '@stdlib/assert/has-float32array-support' );
hasFloat32ArraySupport()
Detects if a runtime environment supports Float32Array
.
var bool = hasFloat32ArraySupport();
// returns <boolean>
Examples
var hasFloat32ArraySupport = require( '@stdlib/assert/has-float32array-support' );
var bool = hasFloat32ArraySupport();
if ( bool ) {
console.log( 'Environment has Float32Array support.' );
} else {
console.log( 'Environment lacks Float32Array support.' );
}
CLI
Usage
Usage: has-float32array-support [options]
Options:
-h, --help Print this message.
-V, --version Print the package version.
Examples
$ has-float32array-support
<boolean>