Navigate to slide based on slide's value

Hi there,

I have a slider, where each slide contains this bit of info:
family: 1,
name: ‘beer glass 200ml’,
img: ‘’,
contains: 0.6
}, etc

How can I navigate to the slide, where “family” value equals 3 (or any other number)? What logic should I put instead of “???” sings here:
this.slider.slideTo(???, 0);

Thank you.