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
Some functions like Lodash's _.each ignore return values. To avoid copy+paste anti-patterns, it might be useful to clean those up.
// Beforereturn_.each(foo,(element,index)=>{if(index===0){return;// This return short-circuits following logic, so it has to stay.}returnelement.position=index;});// Afterreturn_.each(foo,(element,index)=>{if(index===0){return;// This return short-circuits following logic, so it has to stay.}element.position=index;});
Note that $._each is influenced by return values, so be sure to ignore those :)
The text was updated successfully, but these errors were encountered:
Some functions like Lodash's
_.each
ignore return values. To avoid copy+paste anti-patterns, it might be useful to clean those up.Note that
$._each
is influenced by return values, so be sure to ignore those :)The text was updated successfully, but these errors were encountered: