Question: javascript check if all values in object are true?
Answer: write('<br />myObj2 all true: ' + allTrue(myObj2)); A few disclaimers: This will return true if all values are true-ish, not necessarily exactly equal to the Boolean value of True. Also, it will scan all properties of the passed in object, including its prototype.