index.ts 228 B

12345678
  1. // @ts-nocheck
  2. const hasOwnProperty = Object.prototype.hasOwnProperty
  3. /**
  4. * 检查对象是否具有该属性
  5. */
  6. export function hasOwn(obj: Object | Array<any>, key: string): boolean {
  7. return hasOwnProperty.call(obj, key)
  8. }