Last change
on this file since e29cc2e was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
462 bytes
|
Rev | Line | |
---|
[6a3a178] | 1 | var $ = require('../internals/export');
|
---|
| 2 | var toObject = require('../internals/to-object');
|
---|
| 3 | var nativeKeys = require('../internals/object-keys');
|
---|
| 4 | var fails = require('../internals/fails');
|
---|
| 5 |
|
---|
| 6 | var FAILS_ON_PRIMITIVES = fails(function () { nativeKeys(1); });
|
---|
| 7 |
|
---|
| 8 | // `Object.keys` method
|
---|
| 9 | // https://tc39.es/ecma262/#sec-object.keys
|
---|
| 10 | $({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES }, {
|
---|
| 11 | keys: function keys(it) {
|
---|
| 12 | return nativeKeys(toObject(it));
|
---|
| 13 | }
|
---|
| 14 | });
|
---|
Note:
See
TracBrowser
for help on using the repository browser.