1.1.0 • Published 2 years ago

@pteromanager/collection v1.1.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
2 years ago

@PteroManager/Collection

@PteroManager/Collection is an extended class the Map class. It is used to store a collection of objects.

Installation

npm i @pteromanager/collection

How to use it

const { default: Collection } = require('@pteromanager/collection');
const myCollection = new Collection();

myCollection.set('a', 1);
myCollection.set('b', 2);
myCollection.set('c', 3);

console.log(myCollection.get('a'));
// => 1
console.log(myCollection.firstKey());
// => 'a'
console.log(myCollection.firstValue());
// => 1
console.log(myCollection.lastKey());
// => 'c'
console.log(myCollection.lastValue());
// => 3

Support

You can read the documentation for more information or join our Discord Server.

1.1.0

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago