1 | 'use strict';
|
2 | var getBuiltIn = require('../internals/get-built-in');
|
3 | var uncurryThis = require('../internals/function-uncurry-this');
|
4 | var getOwnPropertyNamesModule = require('../internals/object-get-own-property-names');
|
5 | var getOwnPropertySymbolsModule = require('../internals/object-get-own-property-symbols');
|
6 | var anObject = require('../internals/an-object');
|
7 |
|
8 | var concat = uncurryThis([].concat);
|
9 |
|
10 |
|
11 | module.exports = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
|
12 | var keys = getOwnPropertyNamesModule.f(anObject(it));
|
13 | var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
|
14 | return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;
|
15 | };
|