Return id's only in an array

How do i return the id’s only in the instance shown below? I am trying to get a list of the id’s.
I have filtered them correctly as shown but I only want the id’s.

I am using a variable that has array type. Should it be array or object?

I’d use map instead of filter