docs(typeahead): use array.map to shorten async example