Skip to content

Tag: arrays

Multiple conditions for result filter

I have an array of objects that I am filtering through based on a query. If the query matches a title inside the array of objects I return it. These words if I just search on a word like “xbox”, however, if I search “xbox controller” it returns nothing. I was thinking of splitting req.…

Nested Arrays and returning non-labeled values

I’ve got an API that returns the following: I’m able to get the second metric using the following three lines of code: &value would equal 28.24. Is there a way to combine these into one line of code? I’m looking for something like this: &value=jsonObj.data.values[0].[1] The issue is …