It's enough to check str.length only once, not on every loop iteration
It's enough to check str.length only once, not on every loop iteration

revanthpobala/phpjs,VicAMMON/phpjs,davidgruebl/phpjs,Mazbaul/phpjs,MartinReidy/phpjs,cigraphics/phpjs,imshibaji/phpjs,mojaray2k/phpjs,chand3040/phpjs,revanthpobala/phpjs,kvz/phpjs,VicAMMON/phpjs,VicAMMON/phpjs,janschoenherr/phpjs,FlorinDragotaExpertvision/phpjs,strrife/phpjs,w35l3y/phpjs,kvz/phpjs,w35l3y/phpjs,J2TeaM/phpjs,mojaray2k/phpjs,kvz/phpjs,Mazbaul/phpjs,FlorinDragotaExpertvision/phpjs,revanthpobala/phpjs,imshibaji/phpjs,strrife/phpjs,ajenkul/phpjs,Mazbaul/phpjs,janschoenherr/phpjs,davidgruebl/phpjs,janschoenherr/phpjs,FlorinDragotaExpertvision/phpjs,hirak/phpjs,davidgruebl/phpjs,davidgruebl/phpjs,imshibaji/phpjs,FlorinDragotaExpertvision/phpjs,ajenkul/phpjs,mojaray2k/phpjs,J2TeaM/phpjs,imshibaji/phpjs,strrife/phpjs,praveenscience/phpjs,janschoenherr/phpjs,praveenscience/phpjs,strrife/phpjs,praveenscience/phpjs,cigraphics/phpjs,hirak/phpjs,cigraphics/phpjs,J2TeaM/phpjs,MartinReidy/phpjs,chand3040/phpjs,ajenkul/phpjs,praveenscience/phpjs,VicAMMON/phpjs,mojaray2k/phpjs,hirak/phpjs,MartinReidy/phpjs,ajenkul/phpjs,kvz/phpjs,w35l3y/phpjs,w35l3y/phpjs,hirak/phpjs,revanthpobala/phpjs,chand3040/phpjs,Mazbaul/phpjs,J2TeaM/phpjs,MartinReidy/phpjs,cigraphics/phpjs