const nemo = ['Ryan'];
const everyone = ['Bruce', 'David', 'James', 'Matt', 'Joe', 'Alan', 'Chris', 'Ryan', 'Paul', 'Nick'];
const large = new Array(10000000).fill('Ryan');
function findRyan(array) {
let t0 = performance.now();
for (let i = 0; i < array.length; i++) {
if (array[i] === 'nemo') {
console.log('Found Ryan!');
}
}
let t1 = performance.now();
console.log('Call to find Ryan took ' + (t1-t0) + ' miliseconds');
}
findRyan(large);