Articles with the tag #keyword arguments:

How to use keyword arguments in JavaScript

Passing an Object named options to a function instead of separate arguments is one of the oldest tricks in the book, by also assigning an empty object by default you also reduce the amount of if statements needed in the top of the function. But a year ago I learned how combining this with object deconstruction made it so much more elegant. â€¦read more