is-float-array

Check if an array can store floats

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
is-float-array
101.0.04 years ago4 years agoMinified + gzip package size for is-float-array in KB

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 ```js 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.