Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
oneoverten
· 1y ago · 0 comments
Yes. This is true for JS too, object-wrapping parameters just to make them named will add runtime overhead.
Comments
[–]
fenomas
1y ago
Not in current chrome, at least for simple cases (like a short function with a single argument). It benchmarks the same with or without the param wrapper.