Commit

51e28af

Interesting
js
const index = 5;
const result = index & -index;
console.log(result); // 1

commit 51e28af

& is a bitwise AND operator, result basically treats index and -index as signed binary numbers and performs Bitwise AND on them which is equal to 000(...)001