Merge pull request #3677 from danielrob/fix/typo-in-condensing-arrays-with-reduce

Fix typo 'array or numbers' to 'array of numbers' closes #3663
This commit is contained in:
Anton Strömkvist
2015-10-10 12:49:47 +02:00

View File

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