From 9bcdf6cc07afdf8ce8add617fa722568ef8cef39 Mon Sep 17 00:00:00 2001 From: Sahat Yalkabov Date: Sat, 1 Mar 2014 02:47:48 -0500 Subject: [PATCH] Fixed a typo --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.