diff --git a/README.md b/README.md index 54b2604b2c..e28e4df0e8 100644 --- a/README.md +++ b/README.md @@ -365,7 +365,7 @@ Pro Tips -------- - When installing an NPM package, add a *--save* flag, and it will be automatially added to `package.json` as well. For example, `npm install --save moment`. -- Use [async.parallel()](https://github.com/caolan/async#parallel) when you neeed to run multiple +- Use [async.parallel()](https://github.com/caolan/async#parallel) when you need to run multiple asynchronous tasks, and then render a page, but only when all tasks are completed. For example, you might want to scrape 3 different websites for some data (async operation) and render the results in a template after all 3 websites have been scraped. - Need to find a specific object inside an Array? Use [_.findWhere](http://underscorejs.org/#findWhere) function from Underscore.js. For example, this is how you would retrieve a Twitter token from database: `var token = _.findWhere(req.user.tokens, { kind: 'twitter' });`, where `req.user.tokens` is an Array, and a second parameter is an object with a given key/value.