Skip to content

Tag: bitarray

How do I create bit array in Javascript?

What is the best way of implementing a bit array in JavaScript? Answer Here’s one I whipped up: UPDATE – something about this class had been bothering me all day – it wasn’t size based – creating a BitArray with N slots/bits was a two step operation – instantiate, resize. Updated the class to be size based with an optional