Skip to content

Latest commit

 

History

History
18 lines (14 loc) · 300 Bytes

readme.md

File metadata and controls

18 lines (14 loc) · 300 Bytes

IsMillion

Very powerful package to check if a number is one million.

npm install is-million
import isMillion from "is-million";

if ( isMillion(1000000) ) {
	console.log('It is one million.');
}

if ( isMillion(1000001) ) {
	console.log('It is not one million.');
}