lodashrust/collection/
find.rs

1pub fn find<T, F>(array: &[T], predicate: F) -> T
2where
3    T: Clone + Default,
4    F: Fn(&T) -> bool,
5{
6    array.iter().find(|&item| predicate(item)).cloned().unwrap_or_default()
7}