Packages › trotsky › StepWhen › clone
StepWhen.clone() method
Clones the current step and returns a new instance with the same parameters.
Signature:
typescript
clone(...rest: unknown[]): this;
Parameters
Parameter | Type | Description |
---|---|---|
rest | unknown[] | Additional parameters to pass to the cloned step. This is useful for child class overriding the clone. |
Returns:
this
A new StepActor instance.