Skip to content

SomeKittens/sortable-accumulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

sortable-accumulator

Install

npm install sortable-accumulator

Use

import { SortableAccumulator } from 'sortable-accumulator';
import { employeeList } from './employeeList';

let sa = new SortableAccumulator();
employeeList.forEach(employee => sa.add(employee.firstName));

console.log('the most common name is', sa.sort(true)[0].value);

About

util class for quick statistics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published