is-binary-number
v1.0.2
Published
Check if a value is a binary number.
Downloads
3
Maintainers
Readme
is-binary-number
Check if a value is a binary number.
Install
$ npm install --save is-binary-number
Usage
var isBinaryNumber = require('is-binary-number');
isBinaryNumber('1001');
//=> true
isBinaryNumber(1001);
//=> true
isBinaryNumber('00101');
//=> false
isBinaryNumber('abc');
//=> false
License
MIT © Andreas Gillström