From 9f82758211673b251ac44c60f00610af262246f6 Mon Sep 17 00:00:00 2001 From: iamkun Date: Fri, 21 Jul 2023 20:07:33 +0800 Subject: [PATCH] fix: fix isDayjs check logic --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index d225fcc39..d26a401a6 100644 --- a/src/index.js +++ b/src/index.js @@ -9,7 +9,7 @@ Ls[L] = en const IS_DAYJS = '$isDayjsObject' // eslint-disable-next-line no-use-before-define -const isDayjs = d => d instanceof Dayjs || (d && d[IS_DAYJS]) +const isDayjs = d => d instanceof Dayjs || !!(d && d[IS_DAYJS]) const parseLocale = (preset, object, isLocal) => { let l