I'll like to also proposal all method dealing with prototype as in 
getPrototypeOf, have a counterpart for constructor.

E-S4L
N-S4L
J-S4L

> On Sep 17, 2014, at 11:13 AM, "L2L 2L" <[email protected]> wrote:
> 
> 
> 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
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to