Function isValidSeconds

  • Checks if the given number is a valid second value.

    Parameters

    • n: number

      The number to check.

    Returns boolean

    A boolean indicating whether the number is a valid second value.

    Remarks

    This function checks if the given number is an integer between 0 and 59 (inclusive).

    Example

    isValidSeconds(30);  // returns true
    isValidSeconds(60); // returns false
    isValidSeconds(30.5); // returns false

Generated using TypeDoc