I have this.text = currentText and this.name = currentUser
currentText and currentUser are set dynamiclally, currentText can be either Volume, Temp or Weight.
how I can get data array based on user and text?
So if name was Amy and text Volume, I would get [90, 91, 93]
Something like:
you first use bracket notation with a number to get the first element in the filtered array, which is an object, then use bracket notation to access the property of that object