Skip to content

Packages  ›  trotsky  ›  StepBuilderList  ›  withIterator

StepBuilderList.withIterator() method

Sets the iterator function to be executed for each item in the list.

Signature:

typescript
withIterator(iterator?: StepBuilderListIterator): this;

Parameters

Parameter

Type

Description

iterator

StepBuilderListIterator

(Optional) The iterator function to be executed.

Returns:

this

The current instance for method chaining.