title: How to initiate checkbox group values from number total
body: <p>I have a group of checkboxes with the values <code>1,2,4,8,16,32,64</code>. Each number is representative of a day of the week respectively (e.g. Sunday, Monday etc...)</p>
  <p>The checkbox group value is the sum of the selected checkboxes. Sun, Mon, Tue = 7.</p>
  <p>I have not been able to come up with a function that can breakdown the sum back into the appropriate numbers for the correct checkboxes to be selected on edit.</p>
  <p>(I cannot just change their values to strings- the back-end team set it up this way)</p>
  <h3>First Attempt</h3>
  <pre><code>`initSpecificDays(){
      let specificDaysArr = [1,2,4,8,16,32,64];
      let daysTotal = 44;
      let selectedDays = specificDaysArr.map(num=&gt;{
        return daysTotal / num;
      })
      console.log(selectedDays)
    }`
  </code></pre>