Last active
May 10, 2018 13:10
-
-
Save hassansw/8b0b3de15273e163f845c6a8f700489c to your computer and use it in GitHub Desktop.
Javascript Filter
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
listOfObjects.filter(x => x.obj > 1); //or any other condition to filter the list | |
listOfObjects.filter(x => anotherList.includes(x.anyObject)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment