Appearance
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