Thursday, June 20, 2013

JavaScript XOR operator (in 3 characters)


    
if (A ?! B : B) {
    // A XOR B
}
     

No comments:

Post a Comment