Skip to content

@maxhealth.tech/prefab / actions / append

Function: append()

ts
function append(
   target, 
   item, 
   index?): AppendState;

Defined in: actions/sugar.ts:43

Append an item to an array state value. Optionally specify insertion index.

Parameters

ParameterType
targetStateTarget
itemunknown
index?number

Returns

AppendState

Released under the MIT License.