I have a array like this:
var arr = [ true, true, true ];
Now I want to get true
, because all keys of array above are true
.
another example:
var arr = [ true, false, true ];
Now I need to get false
, because there is one false
in the array.
How can I do that?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…