@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.
Check whether a condition is true for any element of an array. The condition check is in the form of a callback.
Return the index of the first element of an array where the callback returns true. Returns -1 if none do.
Return the last element of an array where the callback returns true.
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
Create array comparator function.
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
Binary search -based indexOf for sorted arrays.
Binary search -based indexOf for sorted arrays.
Find all indexes at which an array element exists, by binary search.
Find the array index of where to add an element to keep it sorted.
Remove all duplicate elements in a sorted array, leaving only uniques.
Return the first element of an array where the callback returns true.