showing results for - "in text includes in aray of objects"
Ansel
04 Aug 2018
1let arr = [
2   {
3    name: 'Jack',
4    id: 1
5   },
6   {
7    name: 'Gabriel',
8    id: 2
9   },
10   {
11    name: 'John',
12    id: 3
13   }
14]
15var r = arr.some(i => i.name.includes('Jack'));
16console.log(r);