Open NV opened 9 years ago
http://requirebin.com/?gist=3a6e57bacfbfeb34a66d
var BitSet = require("bitset"); var s = new BitSet(); for (var i = 0; i <= 13; i++) { s.set(i); } s.get(0); // true, as expected. s.clear(0); s.get(0); // true, not good!
atonparker/bitterset doesn’t have this problem, so I’ll use that for now. http://requirebin.com/?gist=106b3c60826a5aa996bf
http://requirebin.com/?gist=3a6e57bacfbfeb34a66d