node/bser/index.js
function nextPow2(size) {
  return Math.pow(2, Math.ceil(Math.log(size) / Math.LN2));
}
function nextPow2(size) {
  return Math.pow(2, Math.ceil(Math.log(size) / Math.LN2));
}
function nextPow2 ( size ) { return Math . pow ( 2 , Math . ceil ( Math . log ( size ) / Math . LN2 ) ) ; }
Find the next power-of-2 >= size
Find the next power - of - 2 > = size