Commit 3417371
committed
refactor(DateObject): Remove for loop in favor of .filter() and .forEach()
Constructor now iteraates over first argument keys, filters out invalid keys, and sets properties on
the DateObject. Previous implemntation requried adding ignore comments for uncovered code. The new
code has few branches and cannot inherite properties from the constructor objects parent(s)1 parent 8923802 commit 3417371
1 file changed
+7
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
415 | 415 | | |
416 | 416 | | |
417 | 417 | | |
418 | | - | |
419 | | - | |
420 | | - | |
421 | | - | |
422 | | - | |
423 | | - | |
424 | | - | |
425 | | - | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
426 | 425 | | |
427 | 426 | | |
428 | 427 | | |
| |||
0 commit comments