Form der Array in JS
const dimensions = [ arr.length, arr[0].length ];
Encouraging Eel
const dimensions = [ arr.length, arr[0].length ];