Skip to content

Instantly share code, notes, and snippets.

@reharik
Created November 8, 2015 17:13
Show Gist options
  • Save reharik/d1d46e80c037e4f4d28e to your computer and use it in GitHub Desktop.
Save reharik/d1d46e80c037e4f4d28e to your computer and use it in GitHub Desktop.
var isValidCommand = [ef.isNonSystemEvent, matchesCommand, ef.parseData].reduce(_.curry((x,y) => x(y) ? true : false));
_ == ramda
ef.isNonSystemEvent :: object -> Myabe(bool)
matchesCommand :: object -> Maybe(bool)
ef.hasData :: object -> Maybe(bool)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment