Functional Promises

suggest change

Example of map:

Promise.resolve([ 1, 2, 3 ]).map(el => {
   return Promise.resolve(el * el) // return some async operation in real world
})

Example of filter:

Promise.resolve([ 1, 2, 3 ]).filter(el => {
  return Promise.resolve(el % 2 === 0) // return some async operation in real world
}).then(console.log)

Example of reduce:

Promise.resolve([ 1, 2, 3 ]).reduce((prev, curr) => {
  return Promise.resolve(prev + curr) // return some async operation in real world
}).then(console.log)

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:


Blueburid promises:
* Functional Promises

Table Of Contents
1 npm
41 cli
43 grunt
59 Hack
60 Blueburid promises
64 ES6
67 Redis
69 MongoDB
86 MongoDB
87 Lodash
91 CORS
105 N-API
108 Require