README
Finds index of first set bit from MSB. :package: :smiley_cat: :running: :vhs: :moon: :scroll: :newspaper: :blue_book:
Alternatives: scan, scanReverse.
This is part of package extra-bit.
bit.scanReverse(x);
// x: an int32
const bit = require("extra-bit");
bit.scanReverse(13);
// 13 (1101 ⇒ 3)
bit.scanReverse(5);
// 2 (101 ⇒ 2)
bit.scanReverse(1);
// 0 (1 ⇒ 0)