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.getBools
BooleanArray.prototype.getBools(
startIndex: number,
count: number,
): boolean[]

Add bulk operations for better performance

Parameters

startIndex: number

the start index to get the booleans from

count: number

the number of booleans to get

Return Type

an array of booleans

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";