Skip to content

Instantly share code, notes, and snippets.

@shabaz-ejaz
Created January 30, 2018 15:21
Show Gist options
  • Save shabaz-ejaz/c3a9437fab123f67f3baf71d66fd3e4e to your computer and use it in GitHub Desktop.
Save shabaz-ejaz/c3a9437fab123f67f3baf71d66fd3e4e to your computer and use it in GitHub Desktop.
Array map shorthand
const arr = [7, 4, 1, 4];
{[...arr].map((x, i) =>
<p>Element</p>
)}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment