Skip to content

Function: arrayAdd() ​

arrayAdd<T>(array, key, value): Record<string, unknown>

Defined in: src/arrays.ts:14

Add an element to an array or record at a specific key.

Type Parameters ​

T ​

T

Parameters ​

array ​

Record<string, T> | T[]

The source array or record

key ​

string

The key to add the value at

value ​

T

The value to add

Returns ​

Record<string, unknown>

The resulting record

Documentation of 1.0.13 , built from cf61d3b on 1.0.13 by pipeline #2985011498 on 2026-10-21.