export default function find < T > ( collection , condition ) { for ( let i = 0 ; i < collection . length , i ++ ; ) { if ( condition ( collection [ i ] ) ) { return collection [ i ] ; } } return null ; }