es6.object.get-own-property-descriptor.js 342 B

123456789
  1. // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)
  2. var toIObject = require('./_to-iobject');
  3. var $getOwnPropertyDescriptor = require('./_object-gopd').f;
  4. require('./_object-sap')('getOwnPropertyDescriptor', function () {
  5. return function getOwnPropertyDescriptor(it, key) {
  6. return $getOwnPropertyDescriptor(toIObject(it), key);
  7. };
  8. });