Object.getConstructorOf = function (obj){
    return (((obj).constructor).toString().match(/\s\w+/)[0].trim());
}

Object.getConstructorOf(function(){});//function

/*
there is no way to test for constructor via function.
*/

E-S4L
N-S4L
J-S4L
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to