refactor(ngRepeat): use &1 instead of %2 for even odd checking#4359
refactor(ngRepeat): use &1 instead of %2 for even odd checking#4359demike wants to merge 2 commits intoangular:masterfrom
Conversation
use "index&1==0" instead of "index%2==0" for even odd checking
|
Thanks for the PR!
If you need to make changes to your pull request, you can update the commit with Thanks again for your help! |
|
It is breaking the build. Use parenthesis so it performs correctly and return boolean instead of integer: |
|
Optimizations like this need to be supported by some evidence. |
|
@demike - can you make sure you sign the CLA. |
|
Just signed the CLA. |
02dc2aa to
fd2d6c0
Compare
cad9560 to
f294244
Compare
e8dc429 to
e83fab9
Compare
4dd5a20 to
998c61c
Compare
|
this PR is no longer valid as this change was done with f2fab49 |
use
instead of
for even odd checking