What is the difference if any between;
if (removeIndex >= 0) {
this.tasks.splice(removeIndex, 1);
}
and
~removeIndex && this.tasks.splice(removeIndex, 1);
I understand the tilde(~) part as the not operator but the double && is confusing me. Are they doing exactly the same thing or not?