projecte_ionic/node_modules/core-js-pure/internals/require-object-coercible.js
2022-02-09 18:30:03 +01:00

11 lines
302 B
JavaScript
Executable file

var global = require('../internals/global');
var TypeError = global.TypeError;
// `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;
};