Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<script src="http://cdnjs.cloudflare.com/ajax/libs/lodash.js/2.4.1/lodash.min.js"></script>
  <meta charset="utf-8">
  <title>JS Bin</title>
</head>
<body>
</body>
</html>
 
/* OLD WAY */
var a = [1,2,3,4,5,6];
for ( var i = 0; i < a.length; i++) {
  console.log( a[i]);
}
/* NEW WAY */
_.each(a, function(e) {
  console.log( e);
});
Output

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

Dismiss x
public
Bin info
meilingerpro
0viewers