Show More
Commit Description:
add model solution
Commit Description:
add model solution
References:
File last commit:
Show/Diff file:
Action:
node_modules/core-js/modules/_keyof.js
| 10 lines
| 309 B
| application/javascript
| JavascriptLexer
|
r789 | 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; | ||||
}; | ||||