OP could definitely have used more examples, but I think he's on the right track. Where declarative or functional programming comes in really handy is composition. Underscore has a lot of utilities that make it easy.…
Library agnostic version if anyone cares for it: https://gist.github.com/jonjaques/3036701
OP could definitely have used more examples, but I think he's on the right track. Where declarative or functional programming comes in really handy is composition. Underscore has a lot of utilities that make it easy.…
Library agnostic version if anyone cares for it: https://gist.github.com/jonjaques/3036701