From c7de3170051ec14cbff6b75ba0958b5ee48a5ed3 Mon Sep 17 00:00:00 2001 From: iamkun Date: Thu, 22 Jun 2023 16:44:16 +0800 Subject: [PATCH] Update index.js --- src/plugin/objectSupport/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugin/objectSupport/index.js b/src/plugin/objectSupport/index.js index 939c97952..4800b6873 100644 --- a/src/plugin/objectSupport/index.js +++ b/src/plugin/objectSupport/index.js @@ -1,7 +1,7 @@ export default (o, c, dayjs) => { const proto = c.prototype const isObject = obj => !(obj instanceof Date) && !(obj instanceof Array) - && !proto.$utils().u(obj) && obj !== null && (obj.constructor.name === 'Object'); + && !proto.$utils().u(obj) && obj !== null && (obj.constructor.name === 'Object') const prettyUnit = (u) => { const unit = proto.$utils().p(u) return unit === 'date' ? 'day' : unit