All Projects → Noelware → collections

Noelware / collections

Licence: MIT license
📝 Collections library made in TypeScript

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to collections

Cdcontainers
Library of data containers and data structures for C programming language.
Stars: ✭ 57 (+307.14%)
Mutual labels:  queue, collections
Mlib
Library of generic and type safe containers in pure C language (C99 or C11) for a wide collection of container (comparable to the C++ STL).
Stars: ✭ 321 (+2192.86%)
Mutual labels:  queue, collections
Containers
This library provides various containers. Each container has utility functions to manipulate the data it holds. This is an abstraction as to not have to manually manage and reallocate memory.
Stars: ✭ 125 (+792.86%)
Mutual labels:  queue, collections
Cdsa
A library of generic intrusive data structures and algorithms in ANSI C
Stars: ✭ 549 (+3821.43%)
Mutual labels:  queue, collections
Buckets Js
A complete, fully tested and documented data structure library written in pure JavaScript.
Stars: ✭ 1,128 (+7957.14%)
Mutual labels:  queue, collections
Data Structures With Go
Data Structures with Go Language
Stars: ✭ 121 (+764.29%)
Mutual labels:  queue, collections
Sc
Common libraries and data structures for C.
Stars: ✭ 161 (+1050%)
Mutual labels:  queue, collections
zmq
ZeroMQ based distributed patterns
Stars: ✭ 27 (+92.86%)
Mutual labels:  queue
analysis-model
A library to read static analysis reports into a Java object model
Stars: ✭ 74 (+428.57%)
Mutual labels:  eslint
tailwind-react-next.js-typescript-eslint-jest-starter
Starter template for building a project using React, Typescript, Next.js, Jest, TailwindCSS and ESLint.
Stars: ✭ 80 (+471.43%)
Mutual labels:  eslint
php-underscore
PHP underscore inspired &/or cloned from _.js, with extra goodies like higher order messaging
Stars: ✭ 42 (+200%)
Mutual labels:  collections
reactjs-vite-tailwindcss-boilerplate
ReactJS + Vite boilerplate to be used with Tailwindcss.
Stars: ✭ 103 (+635.71%)
Mutual labels:  eslint
arcus.messaging
Messaging with Microsoft Azure in a breeze.
Stars: ✭ 20 (+42.86%)
Mutual labels:  queue
web-build-tool-demo
比较全面的前端构建工具demo,拿来即练,不定时更新,包含git npm gulp webpack babel typescript husky eslint tslint lint-stage prettier等
Stars: ✭ 42 (+200%)
Mutual labels:  eslint
express-bull-es6
An example setup with docker-compose, Redis, bull queue and ES6.
Stars: ✭ 67 (+378.57%)
Mutual labels:  queue
react-simple-boilerplate
Simple React Boilerplate with Webpack, Github Actions, Scss, Lazy Loading etc....
Stars: ✭ 38 (+171.43%)
Mutual labels:  eslint
fengyehong123.github.io
心血来潮的资源整理-闲暇之余就更新
Stars: ✭ 31 (+121.43%)
Mutual labels:  collections
uno-game
🎴 An UNO Game made in Javascript
Stars: ✭ 93 (+564.29%)
Mutual labels:  eslint
PySiQ
A Python Simple Queue system for your apps
Stars: ✭ 23 (+64.29%)
Mutual labels:  queue
zero
📦 A zero config scripts library
Stars: ✭ 17 (+21.43%)
Mutual labels:  eslint

@augu/collections · npm version Stars Workflow Status Build Status Build Size

📝 Collections library made in TypeScript

0.x builds

If you would like to use the 0.x builds or view it's source code, it'll be available under the 0.x branch and you can do so with npm i @augu/immutable.

Changes from 0.x -> 1.x

  • Pair and TimedQueue are remvoed
  • All deprecated methods are removed
  • Name is changed from @augu/immutable to @augu/collections

Usage

// CommonJS
const collections = require('@augu/collections');

// ES6+
import collections from '@augu/collections';

// Collection: Key-value pair that is an extension of [Map]
const coll = new collections.Collection(); // Create a empty one
const coll = new collections.Collection({
  // Create one with key-value pairs
  key: 'value',
  [Symbol('key')]: 'value',
});

coll.get('key'); // the value if added or undefined
coll.set('key', 'value'); // the value if the key isn't added

coll.filter((value) => value === 'value'); // Returns a Array of values if the predicate is true
coll.map((v) => v); // Returns a Array of values that are mapped by it's predicate function
coll.reduce((curr, acc) => curr + acc, 0); // Implementation of Array.reduce
coll.sort((a, b) => a - b); // Implementation of Array.sort

// Queue: Queue-based system with a timer extension to do time-based queues
const queue = new collections.Queue(); // Create a empty Queue
const queue = new collections.Queue(['a', 'b', 'c']); // Create one with values being added

queue.get(0); // Get a item from it's index
queue.add('c'); // Add a item to the queue
queue.delete(2); // Delete a item from it's index
queue.filter((c) => c === 'a'); // Filter out the queue from a predicate function
queue.map((u) => u); // Map out anything from a predicate function

Maintainers

License

@augu/collections is released under MIT. 💖

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].