_.isFinite(value)

sourcenpm package

Checks if value is a finite primitive number.Note: This method is based on Number.isFinite.

Since

0.1.0

Arguments

  • value (*): The value to check.

Returns

(boolean): Returns true if value is a finite number, else false.

Example

  1. _.isFinite(3);
    // => true
    _.isFinite(Number.MIN_VALUE);
    // => true
    _.isFinite(Infinity);
    // => false
    _.isFinite('3');
    // => false