4 lines
67 B
JavaScript
4 lines
67 B
JavaScript
|
module.exports = function (v) {
|
||
|
return !(v & (v - 1)) && (!!v)
|
||
|
}
|