UNPKG

reflect.ownkeys

Version:

ES2015 spec-compliant shim for Reflect.ownKeys

11 lines (8 loc) 241 B
'use strict'; var implementation = require('./implementation'); module.exports = function getPolyfill() { if (typeof Reflect === 'object' && typeof Reflect.ownKeys === 'function') { return Reflect.ownKeys; } return implementation; };