Return one object form array that has matching ID

Options

Hi there

I am receiving an array in a response from Stripe - see below. How do I filter the array to return only the object that has an ID matching what I want? I'm sure this is a common ask but I couldn't find an answer searching here. Thanks.

Best Answer

  • Pawel Magdanski
    Pawel Magdanski Member ✭✭✭
    Answer ✓
    Options

    Hi, I think what you are looking for is data manipulation → Arrays → find first element. You can specify the array and the filter there.

Answers