export function except < T > ( a , b ) { return a . filter ( ( el ) => b . indexOf ( el ) === - 1 ) ; } export function firstOrDefault < T > ( arr , filter ) { for ( const item of arr ) { if ( filter ( item ) ) return item ; } return null ; }