1const simpleArray = [3, 5, 7, 15];
2const objectArray = [{ name: 'John' }, { name: 'Emma' }]
3
4console.log( simpleArray.find(e => e === 7) )
5// expected output 7
6
7console.log( simpleArray.find(e => e === 10) )
8// expected output undefined
9
10console.log( objectArray.find(e => e.name === 'John') )
11// expected output { name: 'John' }
1array.include(numberWhichYouWantToFInd);
2// if present it will return true otherwise false