Socket
Socket
Sign inDemoInstall

data-structures-es6

Package Overview
Dependencies
69
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    data-structures-es6

JavaScript data structures written in es6 (es 2015)


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Install size
3.50 MB
Created
Weekly downloads
 

Readme

Source

Data structures in Javascript

Build Status Code Climate Issue Count Coverage Status

Some data structures implemented in Javascript 2015 (es6): Stack, LinkedList

Install

npm install --save data-structures-es6

###Stack

####API

Methods

  • push
  • pop
  • peek
  • clear

####Example

var Stack = require("data-structures-es6").Stack

var stack = new Stack()

stack.push(1)

stack.push(2)

stack.pop()

stack.clear()

###LinkedList

####API

Getters

  • head
  • tail
  • length
  • current

Methods

  • resetCursor
  • next
  • push
  • at
  • removeAt

####Example

var LinkedList = require("data-structures-es6").LinkedList

var list = new LinkedList()

list.push(1)

list.push(2)

list.next()

var curentNode = list.current

console.log(curentNode.data) //2

Keywords

FAQs

Last updated on 11 Aug 2016

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc