qauMaWeb/node_modules/core-js/internals/validate-arguments-length.js

9 lines
214 B
JavaScript
Raw Normal View History

2024-10-13 18:02:27 +08:00
var global = require('../internals/global');
var TypeError = global.TypeError;
module.exports = function (passed, required) {
if (passed < required) throw TypeError('Not enough arguments');
return passed;
};