filter

inline fun <T> Array<out T>.filter(predicate: (T) -> Boolean): Array<T>(source)

Returns an array containing only elements matching the given predicate.