Benchmarking toolset
[Array#slice x 1]: avg time 0.25621700286865234
[Array#slice x 10]: avg time 0.03896540701389313
[Array#slice x 100]: avg time 0.019470300674438477
[Array#slice x 1000]: avg time 0.011888812214136124
[Array#from + Map#values x 1]: avg time 0.16911500692367554
[Array#from + Map#values x 10]: avg time 0.002597507834434509
[Array#from + Map#values x 100]: avg time 0.001498718559741974
[Array#from + Map#values x 1000]: avg time 0.0016447401642799377
NPM scripts
npm run brenchmark
: Run benchmarksnpm t
: Run test suitenpm start
: Runnpm run build
in watch modenpm run test:watch
: Run test suite in interactive watch modenpm run test:prod
: Run linting and generate coveragenpm run build
: Generate bundles and typings, create docsnpm run lint
: Lints codenpm run commit
: Commit using conventional commit style (husky will tell you to use it if you haven't😉 )