Clean up the code a bit
Use references for Math functions
Optimize speed of leftZeroFill and add benchmarks
Use existing function roundAbs
Use regex.test in removeFormattingTokens as matches are not needed
Use result of formatTokenFunctions in makeFormatFunction if available
Optimize map function and remove creating redundant shallow copy of array in makeDateFromInput
Clean the structure of conditons in parseWeekday