From 7880809731f4d4086a05823159c4521f5cf2e0af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Victor=20Ot=C3=A1vio=20Ferreira?= Date: Tue, 5 Nov 2024 16:21:37 -0300 Subject: [PATCH] Improves debugging by preventing `dateFormatter` function from returning an anonymous function. Fix #143. --- src/date.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/date.js b/src/date.js index eb100df..90963ee 100644 --- a/src/date.js +++ b/src/date.js @@ -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) + } }