import * as _ from 'underscore' import {stringNormalize} from 'quill-string-normalizer' import {Response} from '../../interfaces' export function exactMatch(responseString:string, responses:Array):Response|undefined { return _.find(responses, resp => stringNormalize(resp.text) === stringNormalize(responseString) ); }