GoScrobble/web/node_modules/core-js/internals/require-object-coercible.js

7 lines
221 B
JavaScript
Raw Normal View History

2022-04-25 02:47:15 +00:00
// `RequireObjectCoercible` abstract operation
// https://tc39.es/ecma262/#sec-requireobjectcoercible
module.exports = function (it) {
if (it == undefined) throw TypeError("Can't call method on " + it);
return it;
};