Here is the code snippet:
$scope.items.map(function (item) {
if(item.keywords.indexOf($scope.formData.keyword) != -1){
array.push(bono);
}
})
I am trying to figure out how to execute a function with all the elements of the array once the map function finishes. Any ideas on how I can achieve this? I considered stacking the calls, but I'm not sure how to implement it.
Appreciate any help. Thank you.