Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>JS Bin</title>
</head>
<body>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/async/2.1.4/async.js"></script>
  
</body>
</html>
 
async.filter([1, 3, 5], function (item, done) {
        done(null, item > 1);
    }, function (err, results) {
        console.log(results);
    });
    async.filter([1, 2, 3, 4, 5, 6], function(item, callback) {
      if (item > 3) {
          callback(null, true);
      } else {
        callback(false);
      }
    },
    function (err, result) {
      console.log("result: " + result);
    });
Output

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

Dismiss x
public
Bin info
anonymouspro
0viewers