How to get repeater item data after filtering the dataset?

Please help me I am stuck in this that how to access repeater itemdata after filtering the dataset ?
When I tried to access repeaters items data then it is showing me the database items not the filtered items in repeater please reply ASAP!!!

something like this…

$w.onReady(function () {

    //dataset1 is the ID of your dataset, change as necessary 
    $w("#dataset1").onReady(() => { 

        //repeater1 is the ID of your repeater, change as necessary 
        $w("#repeater1").forEachItem(($w) => { 

            let items = $w("#repeater1").getCurrentItem(); 

            console.log(items);