This is my code
let array = [
[
['firstName', 'Mary'],
['lastName', 'Jenkins'],
['age', 36],
['gender', 'female'],
],
[
['lastName', 'Kim'],
['age', 40],
['gender', 'female'],
], [
['firstName', 'Joe'],
['age', 42],
['gender', 'male'],
],
]
array.map(function (el) {
return Object.assign({}, el)
})
However this is how it appears in the console
I've tried array.flat() but did not work as intended
I want the result to look something like this
[[{firstName : 'Mary'}.{lastName : 'jenkins'},..],...]
