"~" tilde operator javacsript code example
Example: meaning of tilde in javascript
//Combined with ~, it can do a boolean check if an item exists in a string value
var foo = "hello world";
if (~foo.indexOf("w")) {
// item in list
} else {
// item not in list
}