function populateList(plates = [], platesList) {
  platesList.innerHTML = plates
    .map((plate, i) => {
      return `
      <li>
        <input type="checkbox" data-index=${i} id="item${i}" ${plate.done ? 'checked' : ''}/>
        <label for="item${i}">${plate.text}</label>
      </li>`;
    })
    .join('');
}
// isolate function to add plates to list

isolate function to add plates to list
isolate function to add plates to list
function populateList(plates = [], platesList) {
  platesList.innerHTML = plates
    .map((plate, i) => {
      return `
      <li>
        <input type="checkbox" data-index=${i} id="item${i}" ${plate.done ? 'checked' : ''}/>
        <label for="item${i}">${plate.text}</label>
      </li>`;
    })
    .join('');
}
function populateList ( plates = [ ] , platesList ) { platesList . innerHTML = plates . map ( ( plate , i ) => { return ` ${ i } ${ i } ${ plate . done ? 'checked' : '' } ${ i } ${ plate . text } ` ; } ) . join ( '' ) ; }
isolate function to add plates to list
isolate function to add plates to list