Function isOdd

  • Checks if a number is odd.

    Parameters

    • n: number

      The number to check.

    Returns boolean

    A boolean indicating whether the number is odd.

    Remarks

    This function will throw an error if the provided value is not an integer.

    Throws

    Will throw an error if the input is not an integer.

    Example

    isOdd(5);
    //=> true
    isOdd(4);
    //=> false

Generated using TypeDoc