Skip to content

Instantly share code, notes, and snippets.

@MrJadaml
Last active May 14, 2017 18:50
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 MrJadaml/ff21ff621cef6117e3e43b9765c0e7ba to your computer and use it in GitHub Desktop.
Save MrJadaml/ff21ff621cef6117e3e43b9765c0e7ba to your computer and use it in GitHub Desktop.
A JavaScript method that will keep looping around an array, forward -- positive, or backward -- negative, when provided a valid or "out of bounds" index value.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment