ogh-aggregator v0.0.10
ogh-aggregator
Tool designed to ease the aggregation of values within arrays of objects in a typesafe fashion.
The tool aggregates the array in a single pass to reduce the amount of array operations going on, which I hope will make larger arrays quicker to aggregate.
I also intend to add some worker process features down the line so that large arrays can be aggregated without tying up the main thread.
This is my first NPM package, and I am aware there are tools that can do this type of stuff a lot better than this does, but this is more of a learning process for me, as well as a way of making code reuse easier across my projects.
Usage
Install the package via npm or yarn
npm install ogh-aggregator
yarn add ogh-aggregator
ogh-aggregator supports module and commonjs. Simply import your desired aggregator using import or require to start aggregating.
Functions
aggregateObjectArrayByGroup\<T>
First group an array of objects of type T by a property of T with the value type string, the perform aggregations on the requested values.