@tempots/std

applyArrayDiffOperations() function

Applies a series of operations to an array and returns the modified array.

Signature:

applyArrayDiffOperations: (operations: ArrayDiffOperations, start: T[]) => T[]

Parameters

Parameter

Type

Description

operations

ArrayDiffOperations

The operations to apply.

start

T[]

The initial array.

Returns: T[]

The modified array after applying the operations.