Closed bhaskarmelkani closed 8 years ago
Tilde(~) is a unary operator that takes an expression( say N ) on its right and converts it to -(N+1).
@bhaskarmelkani
This tip is very similar to: https://github.com/loverajoel/jstips/blob/gh-pages/_posts/en/2016-01-15-even-simpler-way-of-using-indexof-as-a-contains-clause.md
closed by duplicated tip 😓
Tilde(~) operator in JS.
TL;DR;
Tilde(~) is a unary operator that takes an expression( say N ) on its right and converts it to -(N+1).
Username
@bhaskarmelkani
Extra