Skip to content

Instantly share code, notes, and snippets.

@seth10
Created August 28, 2016 20:27
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 seth10/1ac4df5bfc49ff2ba992354d06ca50e2 to your computer and use it in GitHub Desktop.
Save seth10/1ac4df5bfc49ff2ba992354d06ca50e2 to your computer and use it in GitHub Desktop.
Print an array containing a boolean for if each chapter is a string (false being undefined, getChapter has not loaded it yet) every call to addChapter
chaptersStringiness = []
for(var i = 0; i < max_chapters; i++)
chaptersStringiness[i] = typeof(chapters[i])=="string";
console.log(chaptersStringiness);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment