• Checks if a value is an Integer

    Example

    Returns true if the value is an Integer

    const result = isInteger(0);
    console.log(result); // true

    Example

    Returns false if the value is not an Integer

    const result = isInteger(0.5);
    console.log(result); // false

    Returns

    true if value is an Integer, otherwise false

    Parameters

    • value: unknown

      the value to check

    Returns value is number

Generated using TypeDoc