Skip to content
项目

Bishop92/JavaScript-Data-Structures

在 GitHub 查看

关于

JavaScript 数据结构库。

开发工具

这些数字如何统计

实测星标增长

24小时
0
7天
0
15天
-1
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

Data Structures

A library for data structures in JavaScript

DataStructures is a JavaScript library where you can find the most common data structures and also other data structures more advanced. Various method are also provided in order to manipulate data structures.

This library implements the [iterator] (http://en.wikipedia.org/wiki/Iterator_pattern) pattern in order to hide the data structure that work for storing your data.

Supported data structures

How to use

  1. Download the minimized library here (right click and save as...);

  2. Include the file in your project;

  3. Start to use it as any other class.

Example

var listA = new DoubleLinkedList();
var listB = new DoubleLinkedList();
listA.fromArray([0, 1]);
listB.fromArray([2, 3]);
listA.join(listB);
listA.toArray(); // [0, 1, 2, 3]

Documentation

Follow this link to read the full documentation. Follow this link to read the JSDoc.

Support

Battistella Stefano, [email protected]

探索相关项目

加载中…