Raymond Camden's Picture

About Raymond Camden

Raymond is a senior developer evangelist for Adobe. He focuses on document services, JavaScript, and enterprise cat demos. If you like this article, please consider visiting my Amazon Wishlist or donating via PayPal to show your support. You can even buy me a coffee!

Lafayette, LA https://www.raymondcamden.com

Archived Comments

Comment 1 by Henry Ho posted on 4/11/2014 at 2:18 AM

Awesome talk, thanks Ray.

One comment, I think your arrayReduce demo (reduce.cfm @ 36min mark) should make use of the optional `initialValue` attribute instead of using the elvis operator for testing null on every iteration?


Comment 2 by Raymond Camden posted on 4/11/2014 at 2:24 AM

Yes, that is nicer. Here is the version that does that.

result2 = arr.reduce(function(value, element) {
value += element;
return value;