Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
@DiegoCaceres oh, cool. I didn't notice the redux tag. I guess that's a selector then?
-
bioDan56227yNice refactor! 😎
But it depends on the length of the array.
After all last i've checked the for-loop has the best performance than all the other loops.
Also assuming the browser will automatically choose the for-loop, there is still the case in which the object 'list.allIds' is not an array and subsequently the code will fail.
Related Rants
-
kiki17You know who sucks at developing APIs? Facebook. I mean, how are so high paid guys with so great ideas man...
-
wxcazee17Here is a tutorial on how to create a contact form in React / Redux.
-
drGreat58So I put a very strict eslint configuration to a 6 month old project .. .. .. .. 924 errors in 27 files .. .. ...
Just refactored this only for the sake of my eyes..
undefined
redux
react-native
shorter code