Detalhes do pacote

descriptors

vigour-io3.8kISC1.0.4

Like Object.getOwnPropertyDescriptor, but goes along the prototype chain and gets the descriptors for all properties.

getOwnPropertyDescriptors, prototype

readme (leia-me)

descriptors

Like Object.getOwnPropertyDescriptor, but goes along the prototype chain and gets the descriptors for all properties.

Build Status js-standard-style npm version Coverage Status

-- Usage

const descriptors = require('descriptors')
descriptors({ a: 'a', b: 'b' })
/*
  {
    a: {
      value: 'a',
      writable: true,
      enumerable: true,
      configurable: true
    },
    b: {
      value: 'a',
      writable: true,
      enumerable: true,
      configurable: true
    }
  }
*/