You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed that there are a couple of place where code can be simplified in useLoadData where the map-reduce pattern is currently used and .some() or .every() would suffice.
.some() and .every() should offer a time optimization with early termination and a space optimization by not creating a new array like .map() does.
The text was updated successfully, but these errors were encountered:
I noticed that there are a couple of place where code can be simplified in useLoadData where the map-reduce pattern is currently used and
.some()
or.every()
would suffice..some()
and.every()
should offer a time optimization with early termination and a space optimization by not creating a new array like.map()
does.The text was updated successfully, but these errors were encountered: