Skip to content

Commit

Permalink
Improves debugging by preventing dateFormatter function from return…
Browse files Browse the repository at this point in the history
…ing an anonymous function. Fix #143.
  • Loading branch information
vctrtvfrrr committed Nov 5, 2024
1 parent aac26f2 commit 7880809
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/date.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,5 +103,7 @@ function formatDate(date, format, locale) {
}

export function dateFormatter(format, locale) {
return (date) => formatDate(date, format, locale)
return function formatDateFn(date) {
return formatDate(date, format, locale)
}
}

0 comments on commit 7880809

Please sign in to comment.