3 ms·
Yes. This is true for JS too, object-wrapping parameters just to make them named will add runtime overhead.
by oneoverten 1y ago
Yes. This is true for JS too, object-wrapping parameters just to make them named will add runtime overhead.
- fenomas 1y agoNot 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.