daily pastebin goal
67%
SHARE
TWEET

Untitled

a guest Feb 13th, 2018 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. db = new PouchDB()
  2. user = "user.mmckay"
  3. db.get user,
  4.   revs_info: true
  5. .then (result) ->
  6.   availableRevs = _(result._revs_info).chain().filter (rev) ->
  7.     rev.status is "available"
  8.   .pluck("rev").value()
  9.   _(availableRevs).each (rev) ->
  10.     db.get user,
  11.       rev: rev
  12.     .then (result) ->
  13.       console.log result
RAW Paste Data
Top