Created
March 26, 2020 21:23
-
-
Save fazzyA/c747c03151025b1b6a78a858284766c2 to your computer and use it in GitHub Desktop.
Array method es6 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
///filter() method find certain items and filter other according to condition you give | |
const record = ['John', 'Adams', 'faiza'] // let me filter myself out | |
record.filter((item) => {return item !=='faiza'}) | |
//['John', 'Adams'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment