CLZ32

//Returns the number of leading zero bits in the 32-bit binary representation of the number.
var number = Math.clz32(376);
console.log(number);//23
FlashingMustard