Рет қаралды 154
Start_Coding
Loop through arr, apply fn to each element and its index, push elements that return true to filteredArr, return filteredArr.