innovationDriveApp/node_modules/core-js/modules/$.strict-new.js
2018-07-08 19:21:40 +10:00

4 lines
No EOL
152 B
JavaScript

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