loading...

re: Object Oriented Tricks: #3 Death By Arguments VIEW POST

FULL DISCUSSION
 

Actually, in the front-end, we'll rather take an options object that immediately documents the parameters for you:

myFunction({
  title: 'title',
  message: 'message',
  indeterminate: false,
  cancelable: true,
  listener: callback
});
Code of Conduct Report abuse