for(var key in Book) {
console.log(Book[key]);
}
....
var val1 = parseInt(sliders[0].value);
var val2 = parseInt(sliders[1].value);
if (val1 >= val2 ||
val2 <= val1) {
sliders[0].value = val_outputs[0].val();
sliders[1].value = val_outputs[1].val();
return;
}
....
var r = {
id1: name,
id2: name,
id3: name
....
}
var name;
for (var i = 0, l = vm.roles.length; i < l; i++){
var role = vm.roles[i];
if (role.id == "id") {
name = role.name;
break;
}
}