fixed issue #2940: replaced and with an

This commit is contained in:
Aniruddh Agarwal
2015-09-01 08:35:07 +08:00
parent eb2250ea42
commit bdfa2a5656

View File

@@ -205,7 +205,7 @@
"title":"Condense arrays with .reduce",
"difficulty":0,
"description":[
"Reduce can be useful for condensing and array or numbers into one value.",
"Reduce can be useful for condensing an array or numbers into one value.",
"<code>var singleVal = array.reduce(function(previousVal, currentVal){</code>",
"<code>&thinsp;&thinsp;return(previousVal+currentVal);</code>",
"<code>});</code>"