1 | ;
|
2 | var $ = require('../internals/export');
|
3 | var toObject = require('../internals/to-object');
|
4 | var nativeKeys = require('../internals/object-keys');
|
5 | var fails = require('../internals/fails');
|
6 |
|
7 | var FAILS_ON_PRIMITIVES = fails(function () { nativeKeys(1); });
|
8 |
|
9 | // `Object.keys` method
|
10 | // https://tc39.es/ecma262/#sec-object.keys
|
11 | $({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES }, {
|
12 | keys: function keys(it) {
|
13 | return nativeKeys(toObject(it));
|
14 | }
|
15 | });
|