massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / core-js / internals / own-keys.js
1 var getBuiltIn = require('../internals/get-built-in');
2 var uncurryThis = require('../internals/function-uncurry-this');
3 var getOwnPropertyNamesModule = require('../internals/object-get-own-property-names');
4 var getOwnPropertySymbolsModule = require('../internals/object-get-own-property-symbols');
5 var anObject = require('../internals/an-object');
6
7 var concat = uncurryThis([].concat);
8
9 // all object keys, includes non-enumerable and symbols
10 module.exports = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
11   var keys = getOwnPropertyNamesModule.f(anObject(it));
12   var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
13   return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;
14 };