Skip to content

AnshSinghSonkhia/notBinary

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

not-binary

Returns true, if not a binary number (string).

npm License

Installation

Install via npm

npm i not-binary

Install via yarn

yarn add not-binary

Usage

const notBinary = require("not-binary");

console.log(notBinary("101010")); // false (binary)
console.log(notBinary("hello123")); // true (not binary)
console.log(notBinary("123abc")); // true (not binary)
console.log(notBinary("0101012")); // true (not binary)
console.log(notBinary("")); // true (empty string is not binary)
console.log(notBinary("0000")); // false (binary)

About

Returns true, if not binary

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published