validate-arguments-length.js 214 B

12345678
  1. var global = require('../internals/global');
  2. var TypeError = global.TypeError;
  3. module.exports = function (passed, required) {
  4. if (passed < required) throw TypeError('Not enough arguments');
  5. return passed;
  6. };