Skip to content

Commit

Permalink
Do not re-create asMilliseconds for valueOf
Browse files Browse the repository at this point in the history
  • Loading branch information
ichernev committed Dec 26, 2023
1 parent cf4eee9 commit 6a80ca2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/duration/as.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ var asMilliseconds = makeAs('ms'),
asMonths = makeAs('M'),
asQuarters = makeAs('Q'),
asYears = makeAs('y'),
valueOf = makeAs('ms');
valueOf = asMilliseconds;

export {
asMilliseconds,
Expand Down

0 comments on commit 6a80ca2

Please sign in to comment.