Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "utils/inherited-property-descriptors/docs/types/index.d"

Index

Functions

Export assignment inheritedPropertyDescriptors

  • inheritedPropertyDescriptors(value: any, level?: undefined | number): Object
  • Returns an object's inherited property descriptors.

    Notes

    • If provided null or undefined, the function returns an empty object.
    • In contrast to the built-in Object.getOwnPropertyDescriptors(), this function returns an empty object if provided undefined or null, rather than throwing an error.
    throws

    second argument must be a positive integer

    Parameters

    • value: any

      input object

    • Optional level: undefined | number

      inheritance level

    Returns Object

    inherited property descriptors

    Example

    var desc = inheritedPropertyDescriptors( [] );
    // returns {...}