I have a generic function that needs to check the number of items in the array that is named, but I don't always know what the name is going to be called. Is there a way to do this?
array:
// added array example here per request:
var myArray = { "name": "myname", "data": [ "item1": [1], "item2": [2,3,4,5,6,7,8,9], "item3": [41,42,51,491]}
// where length is the number of objects in the array.
var mycount = someitem.getProperty("UnknownName").length;
what I want to do is call some function that does this:
var mycount = specialCountFunction(someitem, name);