UNPKG

ds-algo-study

Version:

Just experimenting with publishing a package

6 lines (5 loc) 101 B
find = ( set, fn ) => { for ( const item of set ) { if ( fn( item ) ) return item; } };