Enforcing Required Function Arguments in ES6 JavaScript