Skip to content

Latest commit

 

History

History
10 lines (9 loc) · 252 Bytes

README.md

File metadata and controls

10 lines (9 loc) · 252 Bytes

ddd-bitfield

A simple typed bitfield class utilizing the template literal support coming in Typescript 4.1.

Example

const flags = new BitField(0b010);
console.log(flags.get()); // 2
flags.set(0);
console.log(flags.get()); // 3