Jcon
Member since Apr 6, 2020
- Profile: /members/14138-jcon.htm
- Comments: 1
Recent Blog Comments By Jcon
-
I Prefer The Unary Plus (+) Operator Over parseInt() And ParseFloat() When Coercing Strings To Numbers In JavaScript
Posted on Apr 6, 2020 at 2:21 PM
@JM, The benchmark is misleading because the +"100" case is benefiting from some compiler optimizations that wont happen when the input is dynamic. See this updated version... read more »