export function createMutationsSection(mutarray) { // Mutations section let mutations = document.createElement('div'); mutations.className = 'creature_mutations'; let mutationsHTML = '

Mutations

'; let mutationsList = mutarray.reduce((result, mutation) => result + `
  • ${mutation}
  • `, ''); mutationsHTML += ``; mutations.innerHTML = mutationsHTML return mutations }