.isinteger - macmcmeans/localDataStorage GitHub Wiki

localDataStorage.isinteger( keyName )

This method checks the data type of the value stored under keyName to determine if it's a Number having no decimal point, and returns true or false.

EXAMPLE:

● localData.set( 'key2', 1200.0047 ) ● localData.isinteger( 'key2' ) --> false

You can also check whether a key value is a float, or just a number.

🏿 The corresponding Memory Key method is _isinteger.

📝 NOTE: While JavaScript itself has no bona fide primitives of integer or float (these are both Numbers), localDataStorage will let you recognize the distinction.