extjs - create array of objects (multiple keys and values) -
i created var object put in key , values.
i can call key , object[key] there keys repeated such as
key = a, key = b, key = a, key = b
i want separate first 2 objects in array[0][0] , array[0][1] , other 2 in array[1][0] , array[1][1]. possible?
thanks in advance!
deending on needs, can make array of arrays such.
var arr = new array(); arr.push([{key:"a"}, {key:"b"}]); arr.push([{key:"a"}, {key:"b"}]);
console logs =>
arr[0][0] object {key: "a"} arr[0][1] object {key: "b"} arr[1][0] object {key: "a"} arr[1][1] object {key: "b"}
Comments
Post a Comment