I\'m trying to create an associative array, create an empty array, and then add a (indexName -> value) pair:
indexName
var arrayName = new Array; arrayName[\
I did something like like following;
let parentArray = []; let childArray = [1, 2, 3]; childArray.name = 'my-array-1'; parentArray.push(childArray);
To access that by name in ES6;
parentArray.filter(x => x.name == 'my-array-1');