src/BitArray/bitArray.js
function(size){
  this.data = [];
  if(typeof size === 'undefined'){
    return; // Empty instance of a bit array
  }
  if(typeof size !== 'number'){
    size = shred(size);
  }
  for(var i=0; i<Math.ceil(size/INTEGER_SIZE); ++i){
    this.data.push(0);
  }
}
function(size){
  this.data = [];
  if(typeof size === 'undefined'){
    return; // Empty instance of a bit array
  }
  if(typeof size !== 'number'){
    size = shred(size);
  }
  for(var i=0; i<Math.ceil(size/INTEGER_SIZE); ++i){
    this.data.push(0);
  }
}
function ( size ) { this . data = [ ] ; if ( typeof size === 'undefined' ) { return ; // Empty instance of a bit array } if ( typeof size !== 'number' ) { size = shred ( size ) ; } for ( var i = 0 ; i < Math . ceil ( size / INTEGER_SIZE ) ; ++ i ) { this . data . push ( 0 ) ; } }
Instantiates a bit array with given size.
@param {number} [size = 0] the size of the bit array
@return {void}
Instantiates a bit array with given size .