optionsA = [-5, -4, -3, 0, 1, 2, 3, 5, 10, 100];
optionsB = [null, undefined, false, 0, true, 1, 999, 'A'];
foo = { fieldA: optionsA[+(Math.random() * (optionsA.length - 1)).toFixed()] }
bar = { fieldB: optionsB[+(Math.random() * (optionsB.length - 1)).toFixed()] }
check = foo.fieldA > 1 && bar.fieldB;
console.log(check);
optionsA = [-5, -4, -3, 0, 1, 2, 3, 5, 10, 100];
optionsB = [null, undefined, false, 0, true, 1, 999, 'A'];
foo = { fieldA: optionsA[+(Math.random() * (optionsA.length - 1)).toFixed()] }
bar = { fieldB: optionsB[+(Math.random() * (optionsB.length - 1)).toFixed()] }
check = bar.fieldB && foo.fieldA > 1;
console.log(check);