top | item 21596610 (no title) orisa2 | 6 years ago From the post, I wasn't sure if you knew, but JS also has regular default parameters if that's all you want. discuss order hn newest capableweb|6 years ago Not as nice though, as the arguments still depend on the order. Passing a object gives the benefit of named arguments AND position of the arguments no longer matter (as object keys don't have order and also, it's a object with key/values)
capableweb|6 years ago Not as nice though, as the arguments still depend on the order. Passing a object gives the benefit of named arguments AND position of the arguments no longer matter (as object keys don't have order and also, it's a object with key/values)
capableweb|6 years ago