import { SearchResult } from '../types' ; import { SearchSuccess } from '../actions/search' ; param action export const resultsThatAppearInBoth = ( action ) => ( prevSearchResult ) : boolean => action . data . has ( prevSearchResult . groupId ) ;