JSFiddle - React, Tailwind, and code Playground

HTML

<input type='checkbox' class='chk' id='chk_1' value='1' />
<input type='checkbox' class='chk' id='chk_2' value='2' />
<input type='checkbox' class='chk' id='chk_3' value='3' />
<input type='checkbox' class='chk' id='chk_4' value='4' />
<input type='checkbox' class='chk' id='chk_5' value='5' />
<input type='checkbox' class='chk' id='chk_6' value='6' />
<input type='checkbox' class='chk' id='chk_7' value='7' />
<input type='checkbox' class='chk' id='chk_8' value='8' />
<input type='checkbox' class='chk' id='chk_9' value='9' />
<input type='checkbox' class='chk' id='chk_10' value='10' />
<input type='checkbox' class='chk' id='chk_11' value='11' />
<input type='checkbox' class='chk' id='chk_12' value='12' />
<input type='checkbox' class='chk' id='chk_13' value='13' />
<input type='checkbox' class='chk' id='chk_14' value='14' />
<input type='checkbox' class='chk' id='chk_15' value='15' />

JavaScript

$(function(){
    var arr = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13],
        checkboxes = $('.chk');

    checkboxes.each(function(i, item){
        $(this).prop('checked', false);
    });
    
    arr.forEach(function(item, i) {
        $('#chk_' + item).prop('checked', true);
    });
});