hexo/node_modules/core-js/modules/_an-object.js

6 lines
159 B
JavaScript

var isObject = require('./_is-object');
module.exports = function (it) {
if (!isObject(it)) throw TypeError(it + ' is not an object!');
return it;
};