Im using an API called govmap https://api.govmap.gov.il/#intersect-features , this is the function that sending the response to the devtool:
THIS FUNCTION IS IN <-head-> --> on index.html
function showExample() {
var params = {
type: govmap.locateType.lotParcelToAddress,
address: 'jerusalem 21, tel aviv'
}
govmap.searchAndLocate(params).then(function (response) {
console.log(response)
});
}
I want to filter the response (screenshot added with picture at the beggining) so the output will only INCLUDES Values who's in data .
any Suggestions?

.catchto see if there's any error? The use isfunc().then().catch(e => console.log(e)). Because if the API requires JSON, you usually need to stringify the params byJSON.stringify(params). Also,response.datais not a function, but it's an attribute of Objectresponse.