Drarig29 / brackets-manager.js

A simple library to manage tournament brackets (round-robin, single elimination, double elimination).
https://drarig29.github.io/brackets-docs
MIT License
245 stars 38 forks source link

Add a way to select first or last in storage #177

Open Drarig29 opened 1 year ago

Drarig29 commented 1 year ago

Currently, there are selectFirst() and selectLast(), but they are built on top of select(), which may return multiple values.

Instead, we could add an option bag to select(), which would could give the intention of the library of only querying a single item.