source: imaps-frontend/node_modules/core-js/modules/es.object.keys.js@ 79a0317

main
Last change on this file since 79a0317 was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 3 days ago

F4 Finalna Verzija

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