Using JavaScript or jQuery, I want to check through an array to make sure all items have a certain value. So for example, if I am checking for "active" in the following arrays, I want:
["active"] => true
["active", "active", "active"] => true
["active", "pending", "active", "active"] => false
["pending"] => false
What's the simplest way to accomplish this?