1.5.2 • Published 5 months ago

@kasnix/structured-objects v1.5.2

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

Structured Objects

Structured Objects is a lightweight and powerful library for manipulating objects in JavaScript and TypeScript across different types of data structures.

Installation

npm:

npm i @kasnix/structured-objects

Yarn:

yarn add @kasnix/structured-objects

pnpm:

pnpm add @kasnix/structured-objects

Deno:

deno add npm:@kasnix/structured-objects

Bun:

bun add @kasnix/structured-objects

Usage

import { ObjectGraph } from "@kasnix/structured-objects/object-graph";

type DataItem = {
  id: string;
  // ...
};

const dataList: Array<DataItem> = [/* ... */];

const dataGraph = new ObjectGraph<DataItem>(dataList, (dataItem) => dataItem.id);

Documentation

1.2.0

11 months ago

1.1.0

11 months ago

1.5.2

5 months ago

1.5.1

5 months ago

1.4.2

8 months ago

1.5.0

6 months ago

1.4.1

8 months ago

1.4.0

8 months ago

1.3.1

9 months ago

1.2.2

9 months ago

1.3.0

9 months ago

1.2.1

9 months ago

1.0.3

12 months ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago