mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-12 17:04:57 +00:00
4 lines
152 B
JavaScript
4 lines
152 B
JavaScript
module.exports = function(it, Constructor, name){
|
|
if(!(it instanceof Constructor))throw TypeError(name + ": use the 'new' operator!");
|
|
return it;
|
|
}; |