Is there a way to extract the "value" associated with the "name" in JSON using Angular JS without having to iterate through the array? For instance, if I have an array like the one below with name and value fields, how can I retrieve the value "ABC" based on the name "a" without iteration in the script?
$scope.array = [{"name":"a","value":"ABC"},{"name":"b","value":"GHI"},{"name":"c","value":"EFG"}];
Is it possible to achieve something similar to this?
$scope.value = $scope.array.name["a"].value;