Options
All
  • Public
  • Public/Protected
  • All
Menu

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

Index

Functions

Export assignment propertyDescriptorsIn

  • propertyDescriptorsIn(value: any): PropertyDescriptorMap
  • Returns an object's own and inherited property descriptors.

    Notes

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

    Parameters

    • value: any

      input object

    Returns PropertyDescriptorMap

    own and inherited property descriptors

    Example

    var obj = {
        'beep': 'boop',
        'foo': 3.14
    };
    
    var desc = propertyDescriptorsIn( obj );
    // returns { 'beep': {...}, 'foo': {...}, ... }