let team = [['Sara', 'John', 'Kate']]
let newTeam = team.map(function(r) {
return r;
})
outputs [ [ 'Sara', 'John', 'Kate' ] ]
Is there a way to modify it so that each value is returned on a new line like this:
[
['Sara'],
['John'],
['Kate'],
]