mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-11 02:21:07 +03:30
6 lines
237 B
JavaScript
Vendored
6 lines
237 B
JavaScript
Vendored
module.exports = function (it, Constructor, name, forbiddenField) {
|
|
if (!(it instanceof Constructor) || (forbiddenField !== undefined && forbiddenField in it)) {
|
|
throw TypeError(name + ': incorrect invocation!');
|
|
} return it;
|
|
};
|