On this pageHome > @jsplumbtoolkit/core > Path > eachGroupPath.eachGroup() methodIterates through the Groups in the path one step at a time.Signature:eachGroup(fn: (i: number, g: Group) => void): void;ParametersParameterTypeDescriptionfn(i: number, g: Group) => voidFunction to call for each step.Returns:void