How can I get the value for an object in an array if I know it's key?
const array1 = [ {a: ['A1','A2']}, {b: ['B1','B2']}, {c: ['C1','C2']},]For example, I'd like to print the value for the object with the 'a' key value which would equal:
['A1','A2']