Skip to main content

Built and signed on GitHub Actions

A Hyper-Performant GC-Minimizing UInt32Array-Backed Boolean Array in Typescript

This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score
100%
Published
3 months ago (0.6.0)
method BooleanArray.prototype.setRange
BooleanArray.prototype.setRange(
startIndex: number,
count: number,
value: boolean,
): this

Set a range of bits to a given value

Parameters

startIndex: number

the start index to set the range from

count: number

the number of booleans to set

value: boolean

the boolean value to set

Return Type

this

this for chaining

Throws

RangeError

if startIndex is out of bounds

RangeError

if count is out of bounds

Add Package

deno add jsr:@phughesmcr/booleanarray

Import symbol

import { BooleanArray } from "@phughesmcr/booleanarray";

---- OR ----

Import directly with a jsr specifier

import { BooleanArray } from "jsr:@phughesmcr/booleanarray";

Add Package

npx jsr add @phughesmcr/booleanarray

Import symbol

import { BooleanArray } from "@phughesmcr/booleanarray";

Add Package

yarn dlx jsr add @phughesmcr/booleanarray

Import symbol

import { BooleanArray } from "@phughesmcr/booleanarray";

Add Package

pnpm dlx jsr add @phughesmcr/booleanarray

Import symbol

import { BooleanArray } from "@phughesmcr/booleanarray";

Add Package

bunx jsr add @phughesmcr/booleanarray

Import symbol

import { BooleanArray } from "@phughesmcr/booleanarray";