how to get value from nested array in javascript code example
Example 1: javascript nested array
//2-dimensional(nested) array
var array = [[0,2,3,7,2,2,1],[1,2,6,3,7,0,3]]
Example 2: how to get value in array object value using for loop in javascript
const people = [
{name: 'John', age: 23},
{name: 'Andrew', age: 3},
{name: 'Peter', age: 8},
{name: 'Hanna', age: 14},
{name: 'Adam', age: 37}];
const anyAdult = people.some(person => person.age >= 18);
console.log(anyAdult); // true