/node_modules/babel-polyfill/node_modules/core-js/library/modules/_an-instance.js

https://bitbucket.org/worklabschd/bingle_customer2 · JavaScript · 5 lines · 5 code · 0 blank · 0 comment · 3 complexity · cb8e94b8a9aca97c2155b496ddaad573 MD5 · raw file

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