I have a data like this from MySQL database
Log [
logs {
Values: {
id: 20,
OtherId: 1,
status: 2,
OtherStatus: 5,
username: 'test1',
num1: 10,
num2: 5,
string: '12345'
},
},
]
I need to able to access all values as variable for later use, i try to use map like
const id = Log.map(log => log.id)
it works, but i don't want to do declare them one by one, is there a way to declare them at once?
const id = Log.map(log => log.id)
const OtherId = Log.map(log => log.OtherId)
const status = Log.map(log => log.status)
.
.
.