Skip to main content
Module

x/structurae/index.ts>SortedArray#splice

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

Changes the array by removing existing elements and adding new ones.

Parameters

start: number

the index at which to start changing the array

deleteCount: number

the amount of old elements to delete

...elements: Array<ItemType>

the elements to add to the array

Returns

SortedArray<ItemType>

an array of deleted elements