, Object.prototype.hasOwnProperty(), , , , . , , , .
function findOwner(property, ownerObjectArray) {
var result = [];
for (var i = 1; i < arguments.length; i++)
{
var obj = arguments[i];
var properyList= Object.getOwnPropertyNames(arguments[i]);
for (var j = 0; j < properyList.length; j++)
{
if (property === properyList[j]) result.push(obj.constructor);
}
}
return result.length > 0 ? result : "undefinded";
}
window.onload = run;
function run()
{
alert(findOwner("parseInt", Array.prototype, window, document));
}