Inspire
Is power of 2
// Square test function testPowerOf2 (n) { n && (n & (n - 1)) === 0 }
Is power of 2 test
javascript