@bausano/data-structures
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

TypeScript Data Structures

Exports data structures for TypeScript. See the list of the structures below or in the docs/ directory.

Installation

npm i @bausano/data-structures -S

Optional

Optional data structure is based on Rust Option enum. It removes the hassle of checking for null or undefined in your code and provides set of useful methods for dealing with potentially missing data.

See the documentation for this structure.

Pipeline

Extracted from @exteranto/framework, pipeline sends data through filters that modify it. Filters functions take the data from previous filter as input and outputs an input for the next one.

See the documentation for this structure.

PriorityQueue

Inspired by Java's PriorityQueue<T extends Sortable>. Sorts elements based on the comparison function the type T provides and also optionally limits the size.

See the documentation for this structure.

Result

Work in progress.

Vector

Work in progress.

Package Sidebar

Install

npm i @bausano/data-structures

Weekly Downloads

2

Version

1.0.3

License

MIT

Unpacked Size

46.1 kB

Total Files

66

Last publish

Collaborators

  • bausano