iwmlib/lib/3rdparty/systemjs/babel-helpers/classCallCheck.js
2019-04-05 10:09:27 +02:00

5 lines
164 B
JavaScript

export default (function (instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function");
}
});