true
.!
) operator to return the inverse of the logical or (||
) of the two given values.const nor = (a, b) => !(a||b);
nor(true, true); // false nor(true, false); // false nor(false, false); // true
Subscribe to get resources directly to your inbox. You won't receive any spam! ✌️