Last active
October 29, 2019 17:34
-
-
Save rswilley/a166094022e7e548d41eed3891fba9d5 to your computer and use it in GitHub Desktop.
LINQ Where Contains to JavaScript using Underscore JS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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