I need to detect the length of an inner array within a 2d array in my application. But unfortunately it always raises a "TypeError: Cannot read property 'length' of undefined" error. Does anyone detect an error? Thanks a bunch
This is the 2d array called currentNodeData (I get this with the following command --> console.log(currentNodeData)):
And this is how I want to receive the length of the inner array, which should be 6:
console.log(currentNodeData[0].length);
And this is the error:
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…