Function isValidRuku

  • Type guard that checks if a value is a valid Ruku number

    Parameters

    • x: unknown

      The value to check

    Returns x is Ruku

    True if x is an integer between 1 and the total number of Rukus

    if (isValidRuku(5)) {
    // 5 is a valid Ruku number
    }