Executes the provided function a specified number of times.
This function iterates a given number of times and invokes the provided function
on each iteration. It's useful for performance testing or running repetitive tasks.
Parameters
func: ()=>void
The function to be executed. It should not accept any arguments and return void.
times: number
The number of times the function should be executed. Must be a non-negative integer.
Executes the provided function a specified number of times.
This function iterates a given number of times and invokes the provided function on each iteration. It's useful for performance testing or running repetitive tasks.