Skip to content

Instantly share code, notes, and snippets.

@AlfieDarko
Last active August 13, 2018 12:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AlfieDarko/83fcbab8268971e14d5cba387dff5c65 to your computer and use it in GitHub Desktop.
Save AlfieDarko/83fcbab8268971e14d5cba387dff5c65 to your computer and use it in GitHub Desktop.
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