constructor Method

Construct a new SortedArray.

SortedArray(compare: OrderedComparator<T>, allowDuplicates: boolean = false, clone: CloneFunction<T> = shallowClone): SortedArray

Parameter Type Description
compare OrderedComparator<T> The function used to compare elements within the array.
allowDuplicates boolean If true, multiple values comparing equal may exist in the array.
clone CloneFunction<T> The function invoked to clone a new element for insertion into the array. The default implementation simply returns its input.

Defined in

Last Updated: 08 January, 2020