const autoIncrement: AutoIncrementType =
(startPoint = 0) =>
(_, loopIndex) => {
return startPoint + loopIndex + 1;
};
type AutoIncrementType = (startPoint: number) => LoopFn<number>;
=>
type AutoIncrementType = (startPoint?: number) => LoopFn<number>;
필수값이 아니기 때문에 optional로 변경합니다.
=>
필수값이 아니기 때문에 optional로 변경합니다.