How can we access value from multidimensional array

Viewed 32

Suppose we have an array like:

let arr = [
  [{
    values: [{ 
      name: 'sumit sharma'
    }]
  }]
]

How can we print it without a loop or without arr[0].values[0].name?

Is there any lodash function or any other way?

1 Answers

If you want to visualize it on a browser, you can just use console.log(arr)

Related