0

I have the following code:

var obj = {
    "entry": [
          {
            "obj1": "data1",
            "obj2": "data2",
            "obj3": "data3",
            "obj4": "data4"
          }
        ],
        "resourceType": "Bundle",
        "total": 100,
        "type": "searchset"
    }

var arr = [];

var keys = arr.push(obj);

This returns me a number instead of the array with objects. Why is that?

isherwood
  • 58,414
  • 16
  • 114
  • 157
gamingWorm
  • 19
  • 2

0 Answers0