Sudoo-Pile

Build Status codecov npm version downloads

:bouquet: A Pile of Things

Install

npm install @sudoo/pile --save
# Or
yarn add @sudoo/pile

Usage

import { Pile } from "@sudoo/pile";

const pile: Pile<string> = Pile.create();
pile.add(key, value);
pile.get(key); // value
pile.conclude((key, value) => {key, value}); // [{key, value}, {key2, value2}]