nexxtway/react-rainbow

View on GitHub
src/components/TimePicker/helpers/getNextMinute.js

Summary

Maintainability
A
55 mins
Test Coverage
export default function getNextMinute(value) {
    const number = Number(value);
    if (!value || number === 59) {
        return '0';
    }
    return String(number + 1);
}