Skip to content

Packages  ›  trotsky  ›  StepLists  ›  each

StepLists.each() method

Appends a new List entry step to the current list and returns it.

Signature:

typescript
each(iterator?: StepBuilderListIterator): StepListsEntry<this>;

Parameters

Parameter

Type

Description

iterator

StepBuilderListIterator

(Optional) Optional iterator function to be executed for each item in the list.

Returns:

StepListsEntry<this>

The newly appended StepListsEntry instance.