source: trip-planner-front/node_modules/core-js/modules/es.object.keys.js@ 6c1585f

Last change on this file since 6c1585f was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 462 bytes
Line 
1var $ = require('../internals/export');
2var toObject = require('../internals/to-object');
3var nativeKeys = require('../internals/object-keys');
4var fails = require('../internals/fails');
5
6var 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.