jty
    Preparing search index...

    Function hasOwnProp

    • Same as hasProp but checks for own properties (not inherited properties)

      Type Parameters

      • K extends PropertyKey

      Parameters

      • x: unknown

        an object

      • ...propNames: readonly K[]

        one or more property names

      Returns x is Record<K, any>