Checking if IDs in array are not null and adding them into new array
Since the property names are sequential, you can just put it into a for loop:

function reSelectTags(view) {
    var val, term_ids = [];
    for (var i = 1; i &lt;= 3; i++) {
        val = view["term_id_" + i];
        if (val != null) {
            term_ids.push(val);
        }
    }
    console.log(term_ids);
}


You can also just put repeated code into a local function:

function reSelectTags(view) {
    var term_ids = [];

    function pushVal(name) {
        if (view[name] != null) {
            term_ids.push(view[name]);
        }
    }
    pushVal("term_id_1");
    pushVal("term_id_2");
    pushVal("term_id_3");
    console.log(term_ids);
}