javascript-in-one-pic
javascript-in-one-pic copied to clipboard
Bitwise operators
Are bitwise operators coming? https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Bitwise_Operators
@Tarabass I thought it was not very commonly used, but I've received couple of suggestions about this, so I put it on the TODO list, thx~
:+1:
@rainyear there are people like me that do stuff like:
if (~foo.indexOf("bar"))
and something like:
var min = sec / 60 | 0;
sec %= 60;
so please keep in mind people use them for other purposes aswell.