Guest User

Untitled

a guest
Jan 23rd, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. var allActive = [{id: 1, active: true}, {id: 2, active: true}, , {id: 3, active: true}];
  2. var someNot = [{id: 4, active: true}, {id: 5, active: true}, , {id: 6, active: false}];
  3.  
  4. for(var index = 0, student; student = array[index]; index++){
  5. if(stduent.active){
  6. return false;
  7. }
  8. }
Add Comment
Please, Sign In to add comment