Created
December 15, 2020 15:03
-
-
Save samuelpath/9fcfda9a578a4b65c0196083ec47d189 to your computer and use it in GitHub Desktop.
Filter
This file contains hidden or 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
const eleves = [ | |
{ nom: 'Pierre', age: 15 }, | |
{ nom: 'Paul', age: 22 }, | |
{ nom: 'Jacques', age: 18 }, | |
{ nom: 'Jean', age: 17 } | |
]; | |
// const garderMajeurs = | |
const elevesMajeurs = eleves.filter(garderMajeurs); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment