function checkSeconds(seconds) {
	const secondsNum = Number(seconds);
	if (seconds === '') {
		return new TimePickerException('INVALID_SECONDS', 'INVALID_SECONDS_EMPTY');
	} else if (seconds.length !== 2 || isNaN(secondsNum) || secondsNum < 0 || secondsNum > 59) {
		return new TimePickerException('INVALID_SECONDS', 'INVALID_SECONDS_NUMBER');
	}
	return null;
}
/**
 * Check if seconds are correct.
 * This function throws the errors
 */
Check if seconds are correct.
This function throws the errors
Check if seconds are correct . This function throws the errors
function checkSeconds(seconds) {
	const secondsNum = Number(seconds);
	if (seconds === '') {
		return new TimePickerException('INVALID_SECONDS', 'INVALID_SECONDS_EMPTY');
	} else if (seconds.length !== 2 || isNaN(secondsNum) || secondsNum < 0 || secondsNum > 59) {
		return new TimePickerException('INVALID_SECONDS', 'INVALID_SECONDS_NUMBER');
	}
	return null;
}
function checkSeconds ( seconds ) { const secondsNum = Number ( seconds ) ; if ( seconds === '' ) { return new TimePickerException ( 'INVALID_SECONDS' , 'INVALID_SECONDS_EMPTY' ) ; } else if ( seconds . length !== 2 || isNaN ( secondsNum ) || secondsNum < 0 || secondsNum > 59 ) { return new TimePickerException ( 'INVALID_SECONDS' , 'INVALID_SECONDS_NUMBER' ) ; } return null ; }
Check if seconds are correct.
Check if seconds are correct .