Function isInteger

  • It will determine whether the provided value is an integer or not.

    Parameters

    • value: unknown

    Returns value is number

    Since

    1.0.0

    Example

    isInteger(2);
    // => true

    Example

    isInteger(2.2);
    // => false