Appearance
检查对象是否拥有某个属性。
import { hasOwn } from '@base-web-kits/base-tools-vue'; const obj = { a: 1 }; if (hasOwn(obj, 'a')) { console.log('has own property a'); } ```来源 [VueUse](https://vueuse.org/functions/hasOwn/)