Runtime.getCollectionEntries

Returns entries of given Map / Set collection.

{
  "name": "getCollectionEntries",
  "description": "Returns entries of given Map / Set collection.",
  "parameters": [
    {
      "name": "objectId",
      "$ref": "Runtime.RemoteObjectId",
      "description": "Id of the collection to get entries for."
    },
    {
      "name": "objectGroup",
      "optional": true,
      "type": "string",
      "description": "Symbolic group name that can be used to release multiple. If not provided, it will be the same objectGroup as the RemoteObject determined from objectId. This is useful for WeakMap to release the collection entries."
    },
    {
      "name": "startIndex",
      "optional": true,
      "type": "integer",
      "description": "If provided skip to this index before collecting values. Otherwise, 0."
    },
    {
      "name": "numberToFetch",
      "optional": true,
      "type": "integer",
      "description": "If provided only return numberToFetch values. Otherwise, return values all the way to the end."
    }
  ],
  "returns": [
    {
      "name": "entries",
      "type": "array",
      "items": {
        "$ref": "CollectionEntry"
      },
      "description": "Array of collection entries."
    }
  ]
}