main
Last change
on this file was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 4 days ago |
F4 Finalna Verzija
|
-
Property mode
set to
100644
|
File size:
476 bytes
|
Rev | Line | |
---|
[79a0317] | 1 | 'use strict';
|
---|
| 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 | });
|
---|
Note:
See
TracBrowser
for help on using the repository browser.