Function getPropertyDescriptor

  • Gets the property descriptor of a property of an object. Loops through the prototype chain.

    Parameters

    • obj: any

      Any object

    • prop: string

      Property name

    Returns PropertyDescriptor | undefined

    The property descriptor of the property, or undefined if the property does not exist.

Generated using TypeDoc