restApiSearchResultToArray

  • function
 

transform REST API response to a typehead compatible one

function(data)

transform REST API response to a typehead compatible one

Parameters

  1. data {*}

typehahead works with an array of objects but the response from the REST API will contain a data object with the results