function* generateId() { let index = 1; while (true) { yield index++; } } const generateUserId = generateId(); const generateProdId = generateId(); // user id console.log("user", generateUserId.next()); console.log("user", generateUserId.next()...