import { IQuizFull } from '../types' ; export function generateReportQuizzesFromQuizzesMap ( filteredQuizzesMap ) { const quizzes = { } ; for ( const [ key , value ] of filteredQuizzesMap ) { const duplicateQuiz = JSON . parse ( JSON . stringify ( value ) ) ; delete duplicateQuiz . questions ; quizzes [ key ] = duplicateQuiz ; } return quizzes ; }