/node_modules/babel-polyfill/node_modules/core-js/library/modules/_validate-collection.js

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

  1. var isObject = require('./_is-object');
  2. module.exports = function (it, TYPE) {
  3. if (!isObject(it) || it._t !== TYPE) throw TypeError('Incompatible receiver, ' + TYPE + ' required!');
  4. return it;
  5. };