Last active
August 13, 2018 19:56
-
-
Save AlfieDarko/f6a6e5e070e2414fb5cc2f636dd03eb6 to your computer and use it in GitHub Desktop.
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
function returnFitPlayers(allPlayers, injuredPlayers) { | |
let result = allPlayers.filter((player) => { | |
!injuredPlayers.includes(player) | |
}); | |
return result; | |
} | |
// filter through the manUTD team and return players | |
// that are NOT included in the injuredPlayers array | |
const fitPlayers = returnFitPlayers(manUTD, InjuredPlayers) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment