SyntaxFix
Write A Post
Hire A Developer
Questions
advance code for the search for all attributes of the object in arrays
b=[]; yourArray.forEach(x => { Object.keys(x).forEach(i => {if (x[i].match('5') && !b.filter(y => y === x).length) { b.push(x) }}) }); console.log(b)