@tempots/std

applyArrayDiffOperations() function

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

Signature:

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

Parameters

Parameter

Type

Description

operations

ArrayDiffOperations<T>

The operations to apply.

start

T[]

The initial array.

Returns: T[]

The modified array after applying the operations.