'; } }; const getDestinationSuggestions = term => { const { from } = rxjs; var promise = $.ajax({ url: '/en-us/ajax/getdealsfilterssuggestions', dataType: 'json', data: {query: term} }).promise(); return from(promise); }; const renderDestinationSuggestions = suggestions => { if(suggestions.length) { return suggestions.reduce((acc, dest) => acc + `