(value, length)
| 8 | return c.substring(0, length); |
| 9 | } |
| 10 | function zpad(value, length) { |
| 11 | if (length == null) { |
| 12 | length = 2; |
| 13 | } |
| 14 | const str = String(value); |
| 15 | return repeat("0", length - str.length) + str; |
| 16 | } |
| 17 | function getDate(date) { |
| 18 | return [ |
| 19 | date.getFullYear(), |
no test coverage detected