lowcode-engine/packages/designer/src/utils/has-own-property.ts
2020-02-14 02:32:12 +08:00

5 lines
206 B
TypeScript

const prototypeHasOwnProperty = Object.prototype.hasOwnProperty;
export function hasOwnProperty(obj: any, key: string | number | symbol): boolean {
return obj && prototypeHasOwnProperty.call(obj, key);
}