Skip to content

Instantly share code, notes, and snippets.

@rswilley
Last active October 29, 2019 17:34
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 rswilley/a166094022e7e548d41eed3891fba9d5 to your computer and use it in GitHub Desktop.
Save rswilley/a166094022e7e548d41eed3891fba9d5 to your computer and use it in GitHub Desktop.
LINQ Where Contains to JavaScript using Underscore JS
//A common thing to remember
myList.Where(l => otherList.Contains(l.Id));
_.filter(this.myList(), l => {
return _.contains(otherList, l.id);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment