Have an array containing an object which contains more arrays. How can the length of the nested arrays be accessed with .length?
const array = [ { var: [ 'asd', 'a3', 'a4' ],
bar: [ 'asd', 'c3', 'c4' ] } ];
When using array[0].var.length;
if for example var[] only contains 1 attribute, it start measuring the string character length of the attribute. The number i'm after is the number of attributes not string length. If there are more than 1 attribute inserted then it measures the the number of attributes as it should.