UNPKG

react-date-field

Version:
9 lines (7 loc) 165 B
'use strict'; module.exports = function toUpperFirst(str) { if (!str) { return str; } return str.charAt(0).toUpperCase() + str.substring(1); };