Skip to content

Instantly share code, notes, and snippets.

@AndreasPizsa
Created November 16, 2015 13:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AndreasPizsa/ebc68ecebce0eb873ceb to your computer and use it in GitHub Desktop.
Save AndreasPizsa/ebc68ecebce0eb873ceb to your computer and use it in GitHub Desktop.
TS2 - lodash _.forEach
if (item.relations) {
item.relations.forEach((relation) => {
//
// ...
//
});
}
_.forEach(item.relations,(relation)=>{
//
// ...
//
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment