Will this this have any side effect on my code?
Would it be difficult for people to understand or is it bad practice?
for (var i = 0; i < str.length; i++) //if the value of i is less than the length of str
I know this is the condition typically given but,
for (var i = 0; str[i]; i++) //if str[i] has a value
not only is this shorter, it seems easier to understand.
I’m tempted, but should I not use this?