let strRes = ???; if (str.includes(strRes)) {arr.push(obj)}
function findUsersByName(users, str) { let arr = []; for (const obj of users) { let name = obj.name; if (name.indexOf(str) !== -1) arr.push(obj); //if (name.toLowerCase().indexOf(str.toLowerCase()) !== -1) arr.push(obj); } return arr; }