insert
Inserts a new item into the field array.
insert(form, name, options);
Parameters
form
FormStore
name
string
options
object
at
number | undefined
value
FieldValue | FieldValues
Explanation
With at
you define the index where the item should be inserted. The action will only be executed if you define a valid index. If you don't specify an index, the item will be added at the end.