Articles with the tag #keyword arguments:

Image of code sample for the article: How to use keyword arguments in JavaScript

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 at 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