神岛 API 文档 - ArenaPro版
    Preparing search index...
    • Gets the property of target, equivalent to target[propertyKey] when receiver === target.

      Type Parameters

      • T extends object
      • P extends PropertyKey

      Parameters

      • target: T

        Object that contains the property on itself or in its prototype chain.

      • propertyKey: P

        The property name.

      • Optionalreceiver: unknown

        The reference to use as the this value in the getter function, if target[propertyKey] is an accessor property.

      Returns P extends keyof T ? T[P<P>] : any

    • Gets the property of target, equivalent to target[propertyKey] when receiver === target.

      Parameters

      • target: object

        Object that contains the property on itself or in its prototype chain.

      • propertyKey: PropertyKey

        The property name.

      • Optionalreceiver: any

        The reference to use as the this value in the getter function, if target[propertyKey] is an accessor property.

      Returns any