learning-react icon indicating copy to clipboard operation
learning-react copied to clipboard

[Book] Chapter 3 - page 55 - missing brackets in prependZero function

Open DevRin opened this issue 3 years ago • 0 comments

The function should become const prependZeros = key => clockTime => ({ ...clockTime, [key]: clockTime[key] < 10? "0"+clockTime[key]: clockTime[key] });

DevRin avatar Mar 27 '22 21:03 DevRin