|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
476 bytes
|
| Line | |
|---|
| 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.