I'm a self-/internet-taught Javascript amateur and I'm looking to improve the way I code. My current project has some variable "formatting settings" that are altered throughout the course of runtime, depending on starting conditions and some random generation. I currently push these settings to an array and use Array.include() to search for them when required.
Is there a simpler, more efficient, more "traditional" method of doing this? Initially I used a large quantity of boolean variables but this seemed obtuse and made it very difficult to read. Please let me know if there is any way I can improve this question as well.