Allow matching of last item in array #21

Open
jimhigson opened this Issue Oct 31, 2013 · 0 comments

1 participant

@jimhigson
Owner

Using this Github API to get the latest release it'd go:

oboe('/repos/jimhigson/oboe.js/releases')
   .node('![last].name', function( releaseName ){
      console.log('The most recent release was', releaseName);
   })

This is tricky because you don't know if a an array element is the last when you see it from the stream because you haven't seen all of the parent yet.

@jimhigson jimhigson was assigned Oct 31, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment