• Checks if a value is a Float

    Example

    Returns true if the value is a Float

    const result = isFloat(0.5);
    console.log(result); // true

    Example

    Returns false if the value is not a Float

    const result = isFloat(NaN);
    console.log(result); // false

    Returns

    true if value is a Float, otherwise false

    Parameters

    • value: unknown

      the value to check

    Returns value is number

Generated using TypeDoc