MCPcopy Index your code
hub / github.com/kenberkeley/react-demo / zerofill

Function zerofill

src/utils/dateTimeFormatter.js:6–6  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4 * @return {String/Number}
5 */
6const zerofill = val => val >= 10 ? val : '0' + val
7/* 相当于:
8 var zerofill = function (val) {
9 return val >=10 ? val : '0' + val

Callers 1

dataTimeFormatterFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected