Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

is-float-array

dy77.1kMIT1.0.0

Check if an array can store floats

audiojs, buffer, pcm, float, number

readme

is-float-array Build Status unstable

Test if an array can store floats. In particular, Float32Array, Float64Array and Array are detected as float arrays.

Usage

npm install is-float-array

var isFloat = require('is-float-array');

isFloat(Array(10)) // true
isFloat(new Float32Array(10)) // true
isFloat(new Float64Array(10)) // true
isFloat(new Uint8Array(10)) // false

License

© 2018 Dmitry Yv. MIT License.