>>101566362
Yeah sure, here you go:
function logicTable(...table){
return (A,B) => !!table[(!!A)|((!!B)<<1)];
}
var AND=logicTable(0,0,0,1),
OR=logicTable(0,1,1,1),
XOR=logicTable(0,1,1,0);
console.log(AND(true,false)); //false
console.log(XOR(1,1)); //false
console.log(OR(0,true)); //true
Hope this helps!