UNPKG

prioritizer

Version:

Method to prioritize a list with persistence

16 lines (9 loc) 356 B
# Prioritizer Prioritize a list trying to minimize the number of comparisons Create a prioritized list, inject the asynchronous comparison method, start adding items and at some point get them prioritized as an array Check tests/tests.spec.js for examples of usage ## Demo To check a demo of the logic run node demo ## Run all tests npm test