Re:Default Parameters in JavaScript
by STRML on Thursday March 21, 2013 @01:09PM
(#5416844)
Interestingly, in JSPerf, sometimes the ternary pattern is actually faster than the if statement. Must be something V8 is doing.
[ Parent
| on HN ]
There are no comments on this comment yet.