检查对象是否为空

2021-12-06  本文已影响0人  PharkiLL
const isEmpty = obj => Reflect.ownKeys(obj).length === 0 && obj.constructor === Object
上一篇下一篇

猜你喜欢

热点阅读