const data = $('table tr')
.get()
.map(tr => $('input', tr).get().map(n => $(n).val()))
.filter(row => row[row.length - 1])
.map(row => `(${row.map(n => `'${n}'`).join(', ')})`);
* {
margin: 0px;
padding: 0px;
}
myCrazyObject['some array'][2].number;
const traverse = (path, obj) => path.split('.').every(k => obj[k] && (obj = obj[k])) ? obj : null;
traverse('some array.2.number', myCrazyObject); //123