let results = [] pm.response.json().responses.map((item, i) => { if(i !== 0 && item.hits.hits.length > 0) results.push({id: '', title: '---/разделитель/--'}); item.hits.hits.forEach(element => results.push(element._source)); });