Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<script src="https://cdn.rawgit.com/lodash/lodash/4.5.1/dist/lodash.min.js"></script>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>JS Bin</title>
</head>
<body>
</body>
</html>
 
let invoices = [{
    id: 1,
    date: '07-29-2016',
    customerId: 4711,
    positions: [
      { id: 1, title: 'Angular 2 for beginners' },
      { id: 2, title: 'Angular 2 for pros' }
    ]
  },{
    id: 2,
    date: '07-29-2016',
    customerId: 4712,
    positions: [
      { id: 1, title: 'React for beginners' },
      { id: 2, title: 'React for pros' }
    ]
  }
];
let positions = [];
for (let inv of invoices) {
  positions.push(inv.positions);
}
console.log(positions);
Output 300px

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers