Tweakr
    Preparing search index...

    Function isOdd

    • Checks if a number is odd.

      Parameters

      • n: number

        The number to check.

      Returns boolean

      true if n is odd, otherwise false.

      isOdd(3);  // returns true
      isOdd(4); // returns false

      1.1.0