Yet another obfuscated typecast, what does ``~~[]`` return? Always check types and use ``parseInt()`` to truncate numbers to integers.