unary (+) or number() for text-to-number conversion?
Hello, I was reading a standards doc at an IT shop that recommended using the unary for number conversion like this:
var myInt = +'1';
If the unary operation fails then it returns NaN so does the unary operation have any advantage over the Number() function? The Number() function seems more readable.