UNPKG

object.getownpropertydescriptors

Version:

ES2017 spec-compliant shim for `Object.getOwnPropertyDescriptors` that works in ES5.

19 lines (13 loc) 381 B
'use strict'; var define = require('define-properties'); var callBind = require('call-bind'); var implementation = require('./implementation'); var getPolyfill = require('./polyfill'); var shim = require('./shim'); var bound = callBind(getPolyfill(), Object); define(bound, { getPolyfill: getPolyfill, implementation: implementation, shim: shim }); module.exports = bound;