HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by kabes | Hacker News Reader
Parent
Full thread
kabes
·
Javascript has supported this for many years.
View on HN
Hasnep
·
It definitely hasn't, JavaScript doesn't even have named arguments.
kabes
·
If you pass your arguments as an object they are named and you can rename them. So for all practical purposes that's the same thing.
lpil
·
It doesn't have labelled arguments. It can roughly simulate them using an object, but there's a slight performance cost to doing so.
Reply on news.ycombinator.com