hrms-manual/node_modules/core-js/internals/require-object-coercible.js
2023-09-06 14:51:44 +07:00

11 lines
342 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 $TypeError("Can't call method on " + it);
return it;
};