index.js
/** Stores the current unsaved survey to `localStorage` */
Stores the current unsaved survey to `localStorage`
Stores the current unsaved survey to ` localStorage `
function backupSurvey() {
  localStorage.backup = JSON.stringify([
    { name: "Team", value: teamMetric.value },
    { name: "Match", value: matchMetric.value },
    { name: "Absent", value: isAbsent },
    ...gameMetrics.map(metric => { return { name: metric.name, value: metric.value } })
  ]);
}
function backupSurvey ( ) { localStorage . backup = JSON . stringify ( [ { name : "Team" , value : teamMetric . value } , { name : "Match" , value : matchMetric . value } , { name : "Absent" , value : isAbsent } , ... gameMetrics . map ( metric => { return { name : metric . name , value : metric . value } } ) ] ) ; }
Stores the current unsaved survey to `localStorage`
Stores the current unsaved survey to ` localStorage `