- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
- 46
- 47
- 48
- 49
(function(){
var ToDoList = {
targets: {
dasha: [ 'Dasha' , 21 , 'female' ],
masha: [ 'Masha' , 32 , 'female' ],
vasya: [ 'Vasily' , 43 , 'male' ],
oksana: [ 'Oksana' , 13 , 'female' ],
volodya: [ 'Vladimir' , 68 , 'male' ],
olesya: [ 'Olesya' , 25 , 'female' ],
irina: [ 'Irina' , 34 , 'female' ],
olga: [ 'Olga' , 17 , 'female' ],
},
chpokedList: [],
chpock: function() {
for( var i in this.targets ) {
if( this.testChpokableProps( this.targets[i] ) ) {
console.log( this.targets[i][0] )
this.chpokedList[i] = this.targets[i][0];
console.log( 'chpock was success with ' + this.targets[i][0] );
}
}
},
testChpokableProps: function( subj ) {
if ( subj[2] !== 'male') {
return ( subj[1] >= 18 && subj[1] <= 38 ) ? true : false;
}
}
};
var Test = new function() {
this.Go = ToDoList;
};
Test.Go.chpock();
})();
var Test = new function() {
this.Go = ToDoList;
};
Test.Go.chpock();