Function getPropertyDescriptor

  • Get property descriptor from object or its prototype chain

    Type Parameters

    • T

    Parameters

    • obj: T
    • prop: keyof T

    Returns PropertyDescriptor | undefined