Skip to main content
Module

x/structurae/sorted-array.ts>SortedArray#push

Data structures for high-performance JavaScript applications.
Latest
method SortedArray.prototype.push
import { SortedArray } from "https://deno.land/x/structurae@4.0.1/sorted-array.ts";

Adds provided elements to the array preserving the sorted order of the array.

Parameters

...elements: Array<ItemType>

the elements to add to the array

Returns

number

the new length of the array