Last active
August 13, 2018 12:11
-
-
Save AlfieDarko/83fcbab8268971e14d5cba387dff5c65 to your computer and use it in GitHub Desktop.
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
console.log(fitPlayers) | |
// Expected output: | |
// [ 'David de Gea', | |
// 'Victor Lindelöf', | |
// 'Paul Pogba', | |
// 'Romelu Lukaku', | |
// 'Axel Tuanzebe', | |
// 'Scott McTominay', | |
// 'Diogo Dalot' ] | |
// You can see that fitPlayers is a new array that is a transformation of the manUTD array | |
console.log(manUTD) | |
// Expected output: | |
// [ | |
// "David de Gea", | |
// "Victor Lindelöf", | |
// "Eric Bailly", | |
// "Phil Jones", | |
// "Marcos Rojo", | |
// "Paul Pogba", | |
// "Alexis Sánchez", | |
// "Juan Mata", | |
// "Romelu Lukaku", | |
// "Anthony Martial", | |
// "Axel Tuanzebe", | |
// "Scott McTominay", | |
// "Joel Castro Pereira", | |
// "Cameron Borthwick-Jackson", | |
// "Diogo Dalot" | |
// ] | |
// The transformation array is wholly intact and untouched |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment