javascript object of arrays code example
Example 1: object to array javascript
Object.values(obj)
Example 2: array of objects javascript
var widgetTemplats = [
{
name: 'compass',
LocX: 35,
LocY: 312
},
{
name: 'another',
LocX: 52,
LocY: 32
}
]
Example 3: array
// An array in javascript is basicly a data structure set out like this:
const MyArray = {"Object1", "Object2", "Object3"};
Example 4: array in js
var array_name = [item1, item2, ...];
//Used to store more than 1 items