Guest User

Untitled

a guest
Nov 19th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. Concept.prototype.displayResults = function(emailsList){
  2. Promise.map(emailsList, function (email, i) {
  3. return this.fetchImageURL(email).then(imageURL => {
  4. return this.checkFaceExistence(imageURL)
  5. }).then(exists => {
  6. console.log("User with email:", email, "and index:", i, "has/hasn't face in his profile picture", exists)
  7. }).catch(error => {
  8. // Error occured
  9. });
  10. });
  11. }
Add Comment
Please, Sign In to add comment