isInteger

Lang
since 4.0.0

Arguments

  • * The value to check.

Returns

boolean `true` if `value` is an integer, else `false`.

Checks if value is an integer.

Note: This method is based on Number.isInteger.

Example of Lodash _.isInteger

_.isInteger(3);
// => true

_.isInteger(Number.MIN_VALUE);
// => false

_.isInteger(Infinity);
// => false

_.isInteger('3');
// => false