forked from ard/ruoyi-api

Administrator
2023-08-25 fc1e38abb2c5c56ac119e2af346c6f3c5f4e5fd5
1
2
3
4
5
module.exports = function (it, Constructor, name, forbiddenField) {
  if (!(it instanceof Constructor) || (forbiddenField !== undefined && forbiddenField in it)) {
    throw TypeError(name + ': incorrect invocation!');
  } return it;
};