API Reference > bentleyjs-core > Collections > ReadonlySortedArray > forEach forEach Method Apply a function to each element in the array, in sorted order. forEach(func: (value: T) => void): void Parameter Type Description func (value: T) => void The function to be applied. Returns - void Defined in core/bentley/src/SortedArray.ts Line 189 Last Updated: 12 June, 2024