Search
@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
v1.0.4 URL:
https://unpkg.com/@bemoje/arr-sorted-add@1.0.4/dist/arr-sorted-add.umd.js
Open
Browse Files
sorted
array
add
element
whichever
comparator
function
sort
passed
supports
comparator-builder
options
reference
https://github.com/bemoje/bemoje-arr-sort-comparator
arr
find
insertion
index
[compare]
[comparenumeric=false]
numerically
defaults
lexicographic/alphabetic
[comparedescending=false]
descending
order
ascending
[comparearray=false]
arrays
nested
compared
recursively
[compareby=undefined]
callbackelement
object
keys
dot-notation
support
[duplicates=true]
duplicate
exists
callback
type
definition
getter
arrsortedadd