8 lines
181 B
JavaScript
8 lines
181 B
JavaScript
|
'use strict';
|
||
|
var $TypeError = TypeError;
|
||
|
|
||
|
module.exports = function (passed, required) {
|
||
|
if (passed < required) throw new $TypeError('Not enough arguments');
|
||
|
return passed;
|
||
|
};
|