Skip to content

Instantly share code, notes, and snippets.

@mgutz
Created January 11, 2011 20:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mgutz/775066 to your computer and use it in GitHub Desktop.
Save mgutz/775066 to your computer and use it in GitHub Desktop.
var async = require('async');
var assert = require('assert');
engines = ['one', 'two', 'three'];
async.filter(engines, function(item, callBack){
callBack(item != 'two');
}, function(results){
assert.deepEqual(results, ['one', 'three']);
console.log(results);
});
console.log('after');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment