mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
9 lines
192 B
TypeScript
9 lines
192 B
TypeScript
import BitArray = require("bit-array");
|
|
|
|
const a = new BitArray(32);
|
|
a.set(0, true);
|
|
a.set(31, true);
|
|
a.toString(); // "10000000000000000000000000000001"
|
|
a.get(1); // false
|
|
a.get(31); // true
|