2021-02-11 21:31:41 +08:00

5 lines
176 B
JavaScript

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