Skip to content

Instantly share code, notes, and snippets.

@fauxsaurus
Created December 5, 2020 17:35
Show Gist options
  • Save fauxsaurus/696576a84498d43d1ee7fad953de1dbd to your computer and use it in GitHub Desktop.
Save fauxsaurus/696576a84498d43d1ee7fad953de1dbd to your computer and use it in GitHub Desktop.
items.map((result, item, i, {[i+1]: nextItem}) => [item, nextItem]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment