UNPKG

react-keyboard-time-input

Version:
8 lines (7 loc) 232 B
import isTwelveHourTime from './is-twelve-hour-time'; // stringify export default groups => { if (isTwelveHourTime(groups)) return groups.slice(0, -1).join(':') + ' ' + groups[groups.length - 1]; return groups.join(':'); };