index.js 221 Bytes Raw Blame History Permalink 1 2 3 4 5 export default function requiredArgs(required, args) { if (args.length < required) { throw new TypeError(required + ' argument' + (required > 1 ? 's' : '') + ' required, but only ' + args.length + ' present'); } }