hexo/node_modules/core-js/modules/_keyof.js

11 lines
319 B
JavaScript
Raw Normal View History

2023-10-03 11:14:36 +08:00
var getKeys = require('./_object-keys');
var toIObject = require('./_to-iobject');
module.exports = function (object, el) {
var O = toIObject(object);
var keys = getKeys(O);
var length = keys.length;
var index = 0;
var key;
while (length > index) if (O[key = keys[index++]] === el) return key;
};