source: trip-planner-front/node_modules/core-js/internals/object-keys-internal.js@ 1ad8e64

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

initial commit

  • Property mode set to 100644
File size: 582 bytes
Line 
1var has = require('../internals/has');
2var toIndexedObject = require('../internals/to-indexed-object');
3var indexOf = require('../internals/array-includes').indexOf;
4var hiddenKeys = require('../internals/hidden-keys');
5
6module.exports = function (object, names) {
7 var O = toIndexedObject(object);
8 var i = 0;
9 var result = [];
10 var key;
11 for (key in O) !has(hiddenKeys, key) && has(O, key) && result.push(key);
12 // Don't enum bug & hidden keys
13 while (names.length > i) if (has(O, key = names[i++])) {
14 ~indexOf(result, key) || result.push(key);
15 }
16 return result;
17};
Note: See TracBrowser for help on using the repository browser.