function findKeys(object, result){
result = result || []; //Это как необязательный параметр... читайте так findKeys(object, result = [])
var keys = [];
for(var i in object){
if(!object.hasOwnProperty(i))
continue;
keys.push(index);
if($.isObject(value))
findKeys(object, result);
};
result.push(keys);
return result;
}
var data = findKeys(Config);
function findKeys(object, result){
result = result || [];
var keys = [];
$.each(object, function(index, value){
keys.push(index);
if($.isObject(value))
findKeys(object, result);
});
result.push(keys);
return result;
}
var data = findKeys(Config);
if($(window).scrollTop() > $(document).height() - $(window).height() - 50) ...