Promisified Arrays
I like Javascript Promises a lot, so I’m trying to fit them everywhere in my apps. If you haven’t heard about Promises, or haven’t used them yet, I suggest you check out this great guide on them. I also like ES5 array functions and in my opinion they’re a few of the best additions to the language. My favorites are filter and map. The problem with these functions is they are synchronous, and I find myself trying to do something like this: var result = arr.map(function(item) { // Do something Async here. }); Which clearly isn’t going to work out since the callback function passed to map n