Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

data.structure

implementation of the basic structures

data, scructure, basic-scructure, typescript, javascript, list, linked-list, doubly-linked-list

readme

npm npm

data.structure

Implementation of the basic structures of the language TypeScript

Installation

Prerequisites

data.structure require TypeScript 2 or higher. npm

Install

npm install data.structure --save-dev

Usage

import * as DS from 'data.structure'; // import of all structures
let numberList: DS.DoublyLinkedList<string> = new DS.DoublyLinkedList<string>();

import { LinkedList, DoublyLinkedList } from 'data.structure/src/linked-list'; // import lists
let numberList: LinkedList<number> = new LinkedList<number>();

numberList.add(123);

Documentation

Description of the basic methods and properties provided by structures.