KOKozo Oeda@kozmof·6d51e28afInterestingjsconst index = 5; const result = index & -index; console.log(result); // 11Quote
FAFiras Amara@BarnoTD·6d305ec7f& 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(...)00111:00 · Oct 23, 2026 · commit 305ec7fQuoteReplyHide repliesKOKozo Oeda@kozmof·6dExactly. It can get a last bit value.Reply