Skip to content

Instantly share code, notes, and snippets.

@lukin0110
Created November 6, 2015 14:04
Show Gist options
  • Select an option

  • Save lukin0110/fb53b11ebeb81cdbf8c7 to your computer and use it in GitHub Desktop.

Select an option

Save lukin0110/fb53b11ebeb81cdbf8c7 to your computer and use it in GitHub Desktop.
odds = evens.map(v => v + 1);
pairs = evens.map(v => ({ even: v, odd: v + 1 }));
nums = evens.map((v, i) => v + i);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment