I made a simple function:
How well would it work?Code:const constructorof = function (data) { return data.constructor.toString ().split ("(") [0].split (" ") [1]; }
Also, it works for custom prototypes if the custom constructor was made with abutCode:function thing () {}doesn't work, is there any way I can make it?Code:var thing = function () {}



Reply With Quote


Bookmarks