Opal-Estate-Pro/node_modules/core-js/modules/_validate-collection.js
2019-09-13 11:27:52 +07:00

6 lines
200 B
JavaScript

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