Files
ETB/ETB-FrontEnd/node_modules/core-js/internals/require-object-coercible.js
Iliyan Angelov 306b20e24a Frontend start
2025-09-14 00:54:48 +03:00

12 lines
346 B
JavaScript

'use strict';
var isNullOrUndefined = require('../internals/is-null-or-undefined');
var $TypeError = TypeError;
// `RequireObjectCoercible` abstract operation
// https://tc39.es/ecma262/#sec-requireobjectcoercible
module.exports = function (it) {
if (isNullOrUndefined(it)) throw new $TypeError("Can't call method on " + it);
return it;
};