# hasOwn
obj.hasOwnProperty(key) 快捷方式
import { hasOwn } from '@hui-pro/utils';
hasOwn(obj, key);
# API
参数 | 说明 | 类型 | 默认值 | 可选值 |
---|---|---|---|---|
obj | 目标对象 | Object | - | - |
key | 查找 key | String | - | - |
← hasClass isDocument →
obj.hasOwnProperty(key) 快捷方式
import { hasOwn } from '@hui-pro/utils';
hasOwn(obj, key);
参数 | 说明 | 类型 | 默认值 | 可选值 |
---|---|---|---|---|
obj | 目标对象 | Object | - | - |
key | 查找 key | String | - | - |
← hasClass isDocument →