$.keyof.js 299 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 var $ = require('./$') , toIObject = require('./$.to-iobject'); module.exports = function(object, el){ var O = toIObject(object) , keys = $.getKeys(O) , length = keys.length , index = 0 , key; while(length > index)if(O[key = keys[index++]] === el)return key; };