Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var allActive = [{id: 1, active: true}, {id: 2, active: true}, , {id: 3, active: true}];
- var someNot = [{id: 4, active: true}, {id: 5, active: true}, , {id: 6, active: false}];
- for(var index = 0, student; student = array[index]; index++){
- if(stduent.active){
- return false;
- }
- }
Add Comment
Please, Sign In to add comment