const maxIterations = (limit) => ({
    name: "max-iterations",
    hooks: {
        preIteration(ctx) {
            if (ctx.iterationNumber > limit) {
                return "abort";
            }
        },
    },
});
export default maxIterations;
