5 lines
164 B
JavaScript
Executable File
5 lines
164 B
JavaScript
Executable File
export default (function (instance, Constructor) {
|
|
if (!(instance instanceof Constructor)) {
|
|
throw new TypeError("Cannot call a class as a function");
|
|
}
|
|
}); |