function findUsersByString(users, str) { let arr = []; for (const obj of users) { if (str.indexOf != -1) {arr.push(obj)} } return arr; }