JSPM

sprang-bitarray

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q16691F
  • License MIT

bit array implementation

Package Exports

  • sprang-bitarray

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (sprang-bitarray) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

sprang-bitarray

bit array implementation

import {BitArray} from 'sprang-bit-array';

let bArray = new BitArray('0101');

bArray.set(0,1); // 1101
bArray.set(3,0); // 1100
bArray.toggle(2); // 1110
bArray.unset(0); // 0110
bArray.get(2); // 1
bArray.toString(); // '0110'
bArray.toNumber(); // 6
bArray.reset(); // 0000