Search npm for packages to use with Deno
Add them to your projects with a simple command that will already feel familar.
@bemoje/arr-sorted-index-of
Binary search -based indexOf for sorted arrays.
@bemoje/arr-sorted-add
For a sorted array, add an element. Whichever comparator function was used to sort the array, can be passed. Also supports comparator-builder options. For reference, see: https://github.com/bemoje/bemoje-arr-sort-comparator
@bemoje/arr-sorted-has
Binary search -based indexOf for sorted arrays.
@bemoje/arr-sort-comparator
Create array comparator function.
@bemoje/arr-sort
Sort an array considerably faster than the native Array.prototype.sort as a drop-in replacement. Fork of of the famous timsort module, but this module allows for passing comparator-builder options instead of a comparator function. In short, advanced compa
@bemoje/arr-sorted-insertion-index
Find the array index of where to add an element to keep it sorted.
@bemoje/arr-sorted-remove-duplicates
Remove all duplicate elements in a sorted array, leaving only uniques.
@bemoje/arr-sorted-indexes-of
Find all indexes at which an array element exists, by binary search.
@bemoje/arr-index-of-first-where
Return the index of the first element of an array where the callback returns true. Returns -1 if none do.
@bemoje/arr-last-where
Return the last element of an array where the callback returns true.
@bemoje/arr-first-where
Return the first element of an array where the callback returns true.
@bemoje/arr-any
Check whether a condition is true for any element of an array. The condition check is in the form of a callback.