Checks if value is an integer.
value
Note: This method is based on Number.isInteger.
Number.isInteger
Optional
The value to check.
Returns true if value is an integer, else false.
true
false
_.isInteger(3);// => true_.isInteger(Number.MIN_VALUE);// => false_.isInteger(Infinity);// => false_.isInteger('3');// => false Copy
_.isInteger(3);// => true_.isInteger(Number.MIN_VALUE);// => false_.isInteger(Infinity);// => false_.isInteger('3');// => false
Checks if
value
is an integer.Note: This method is based on
Number.isInteger
.