bitmap-ds

1.0.0 • Public • Published

Bitmap

A simple bitmap (data structure) implementation in JavaScript.

Example

const bitmap = new Bitmap(10)
bitmap
  .add(2)
  .add(5)
 
console.log(bitmap.contains(2))  // => true
 
bitmap.clear(2)
console.log(bitmap.contains(2))  // => false

License

MIT

Package Sidebar

Install

npm i bitmap-ds

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

2.49 kB

Total Files

6

Last publish

Collaborators

  • sdvcrx