estructuras

1.0.9 • Public • Published

Estructuras

Repository with a set of handy (and not so much) data structures to be used with node js.

CHECK THE DOCUMENTATION

Install

npm install --save estructuras

All data structures includes:

  • add(element)
  • remove(element)
  • contains(element)
  • find(condition)
  • findOne(condition)
  • isEmpty()
  • forEach(callback)
  • toArray
  • size Most of the structures include more methods, see documentation.

Usage

Check out this example.

Or check out the documentation. We do have documentation.

const List = require('estructuras').List;
 
let l  = new List();
 
l.add("hola");
l.add(2);
l.add(3);
l.add(4);
 
l.remove(3);
 
l.forEach((x)=>{
  //Do something
  console.log(x);
})

Readme

Keywords

Package Sidebar

Install

npm i estructuras

Weekly Downloads

11

Version

1.0.9

License

MIT

Unpacked Size

34.1 kB

Total Files

11

Last publish

Collaborators

  • davidalencia