I'm working with an array of objects that looks like this
const obj = [{ '1': 'a'},{ '2': 'b'}, {'3': 'c'}]
and I need to extract the keys and values separately, like so:
['1','2','3']
and ['a','b','c']
Can anyone provide guidance on how to achieve this?
I've attempted it but haven't been able to get the desired outcome.