array.filter(el=> { if(filter.all) return true; if(filter.pay && el.pay === 'no') return false; if(filter.ready && el.status !== 'ready') return false; if(filter.work && el.status !== 'work') return false; return true; })