Search results
41 packages found
Binary search -based indexOf for sorted arrays.
- binary
- search
- -based
- indexof
- sorted
- arrays
- arr
- array
- element
- find
- [compare]
- [comparenumeric=false]
- sort
- numerically
- View more
⚔️ Sort array of objects by key or function
Remove all duplicate elements in a sorted array, leaving only uniques.
- remove
- duplicate
- elements
- sorted
- array
- leaving
- uniques
- arr
- [compare]
- [comparenumeric=false]
- sort
- numerically
- defaults
- lexicographic/alphabetic
- View more
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
- sort
- array
- considerably
- faster
- native
- arrayprototypesort
- drop-in
- replacement
- fork
- famous
- timsort
- module
- passing
- comparator-builder
- View more
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
- sorted
- array
- add
- element
- whichever
- comparator
- function
- sort
- passed
- supports
- comparator-builder
- options
- reference
- https://github.com/bemoje/bemoje-arr-sort-comparator
- View more
Find the array index of where to add an element to keep it sorted.
- find
- array
- index
- add
- element
- sorted
- arr
- insertion
- [compare]
- [comparenumeric=false]
- sort
- numerically
- defaults
- lexicographic/alphabetic
- View more
Binary search -based indexOf for sorted arrays.
- binary
- search
- -based
- indexof
- sorted
- arrays
- arr
- array
- element
- find
- [compare]
- [comparenumeric=false]
- sort
- numerically
- View more
Find all indexes at which an array element exists, by binary search.
- find
- indexes
- array
- element
- exists
- binary
- search
- [compare]
- [comparenumeric=false]
- sort
- numerically
- defaults
- lexicographic/alphabetic
- [comparedescending=false]
- View more
Create array comparator function.
- create
- array
- comparator
- function
- [options]
- [optionsnumeric=false]
- sort
- numerically
- defaults
- lexicographic/alphabetic
- [optionsdescending=false]
- descending
- order
- ascending
- View more
Like Unix seq, but geometric
- seq
- cli
- unix
- logarithmic
- range
- logrange
- logspace
- geometric
- ascending
- descending
- sequence
- progression
- array
- ratio
- View more
Create comparator from key or less function
Function takes an array of numbers and returns new array with numbers in numeric order
Compose multiple sorting functions
## Installation
A powerful JavaScript library for sorting arrays of numbers with enhanced performance and additional features. It supports various number formats, handles special values like NaN and Infinity, and offers customizable sorting options. Easy to integrate and
- JavaScript
- sorting
- numbers
- array
- custom
- comparator
- NaN
- Infinity
- performance
- algorithm
- ascending
- descending
- library
- open-source
- View more
Sort an array by ascending values via insertion sort, pass by value
Sort numbers in ascending or descending order
Re-orders objects by the numeric value of a particular property in each.
Checks if array of numbers is in numeric order
Sorting Arrays of Numbers in JavaScript, Find Largest and Smallest Number.
- numbersort
- number sort in arrays
- sort arrays
- sorting numbers
- largest number in an array
- ascending
- descending
- arrays