How js uses regularities and findIndex to match all eligible index? in array

has the following array

[
  {name: "", age: 15},
  {name: "", age: 14},
  {name: "", age: 13},
  {name: "", age: 22},
  {name: "", age: 16},
  {name: "", age: 18},
]

can we use regular and findIndex-like methods to match all index? with "small" in name?

for example, the one returned this time is [0quoi 1jue 2jue 4je 5]


let resIndexs = [];
let searchStr = '';
let data = [
  {name: '', age: 15},
  {name: '', age: 14},
  {name: '', age: 13},
  {name: '', age: 22},
  {name: '', age: 16},
  {name: '', age: 18},
];

data.forEach((d, i) => {
  if (d.name.indexOf(searchStr) !== -1) {
    resIndexs.push(i);
  }
});

console.log(resIndexs); // [0, 1, 2, 4, 5]

in fact, using es6's includes is the same as
var res = [];
var arr = [
{name: 'Xiaohong', age: 15},
{name: 'Xiaoming', age: 14},
{name: 'Xiaoqiang', age: 13},
{name: 'Lao Zhang', age: 22},
{name: 'Wang Xiaolan', age: 16},
{name: 'Zhang Xiao, age: 18},
];

arr.forEach (item = > {
if (item.name.includes ( Little )) {

res.push(item);

}
})
console.log (res)

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b37833-2b818.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b37833-2b818.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?