JSFiddle - React, Tailwind, and code Playground
by evgkch
JavaScript
const f = (a, b) => (a && b) || b;
const g = (a, b) => (a || b);
const arr = [[0,0], [1,0], [0,1], [1,1]];
console.log(arr.map(el => {
console.log('f.apply(el)');
console.log(f.apply(el));
console.log('g.apply(el)');
console.log(g.apply(el));
return f.apply(el) === g.apply(el)
}));