amis-rpc-design/node_modules/core-js/internals/validate-arguments-length.js

8 lines
177 B
JavaScript
Raw Normal View History

2023-10-07 19:42:30 +08:00
'use strict';
var $TypeError = TypeError;
module.exports = function (passed, required) {
if (passed < required) throw $TypeError('Not enough arguments');
return passed;
};