Documentation

replaceAt()

Removes the specified object and following objects, and inserts the provided objects in their place.

replaceAt(item?: T, removeCount?: number, ...insert: T[]): T[];

Notes

Parameters

Return value

An array containing the objects that were removed

Related