Boolean arrays that can be serialized to and from base64.
npm install bit-array-jsBoolean arrays that can be serialized to and from base64.
```
npm install bit-array-js
` html`
` js`
var BitArray = require("bit-array-js");
var a = new BitArray(8);
a.set(1); // [false, false, false, true, false, false, false, false]
a.value(3, true); // [false, true, false, true, false, false, false, false]
a.value(3); // returns true
a.toBase64(); // returns UA==
a.fromBase64("EA=="); // [false, false, false, true, false, false, false, false]
a.clear(3); // [false, false, false, false, false, false, false, false]
set true at index
set false at index
return value at index
set at index if val is truthy
clear at index if val is falsy
return base64 encoded string representation
toBase64 with +/ replaced with -_ and padding removed.
value - base64 string
value` - url safe base64 string