I have this data: 

```
 $scope.data = [
        {
            data1:"1",
            data2:"2"

        },
        {
            data1:"1",
            data2:"2"
        }
      ];

```

I want to output them in console log as:

```
[ [1,2], [1,2] ]

```

Any suggestions please.