filterTo

inline fun <V> SparseArray<V>.filterTo(destination: SparseArray<V>, predicate: (Int, V) -> Boolean): SparseArray<V>

Writes all entries matching given predicate to destination array.

Return

Destination array.