I get a json-style result from an $http GET in angularJS.
It looks like this:
{
"meta":{
"limit":1000,
},
"objects":[
{
"custom_pk":"1",
"linked_client":null,
"resource_uri":"/api/v1/card_infos/1"
},
{
"custom_pk":"2",
"linked_client":null
}, ...
I'd like to have an array which contains all custom_pk values to do something like:
$scope.validate_pk = function(val){
if (val in myArray)
// do some stuff
How do you create myArray?