Monthly Archives: February 2017

Promise.all for Rejections and Resolves

Promises have been an incredible addition to JavaScript; they save us callback hell, make coding async more maintainable, and and allow us to keep track of multiple async processes at a time.  Promise.all comes to mind, allowing us to react when multiple promises have been resolved.  Unfortunately Promise.all only resolves when all promises are resolved, so if any of the promises fail, […]

The post Promise.all for Rejections and Resolves appeared first on David Walsh Blog.

Unique Array Values

When you look at any programming language, you see missing features that you find puzzling because the use case seems so common.  One such case is retrieving unique values from an array with JavaScript. Years ago I mentioned an easy way of unique value management using objects instead of arrays, but that’s not always an option and doesn’t […]

The post Unique Array Values appeared first on David Walsh Blog.

Cloudinary React Components

I’ve been experimenting a lot with both React and Cloudinary over the past six months and it’s been a blast — I’m learning a ton while also recovering the ambition and thirst I had as a young developer.  React has been a revelation:  an advanced JavaScript framework that doesn’t overcomplicate things and has encouraged me to learn more […]

The post Cloudinary React Components appeared first on David Walsh Blog.