const initFunc = () => {
let a = 5;
let b = 6;
let c = 9;
const nums = [a, b, c];
let i = 0;
const { length } = nums;
return (n) => n * nums[i++ % length];
}
const func = initFunc();
console.log(func(2)); //10
console.log(func(2)); //12
console.log(func(2)); //18
console.log(func(2)); //10
const dataReq = { ...req.params, ...req.query } as IRequestMonth;