Mario Romano 29df96a085 react app
2016-04-06 17:52:19 +01:00

4 lines
152 B
JavaScript

module.exports = function(it, Constructor, name){
if(!(it instanceof Constructor))throw TypeError(name + ": use the 'new' operator!");
return it;
};