filter

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

Returns an array containing only elements matching the given predicate.

Sources

Link copied to clipboard