funderscore

happy functional funtimes version of _

funderscore

happy functional funtimes version of _

var _ = require('funderscore')
 
var foo = {
  a: 'ha',
  b: 'ob',
  c: 'ac'
}
 
_.reduce(
  _.map(foo, function (val) {
      return val[1].toUpperCase()
    }),
  function (seedvalkey) {
      seed[key+'M'] = val
      return seed
    })
  )
// => { 
//      aM: 'A', 
//      bM: 'B', 
//      cM: 'C' 
//    }  

api likely to change. I want to experiment more with chaining, possibly using this

$ npm install funderscore

jden jason@denizac.org

MIT. (c) 2013 jden jason@denizac.org. See LICENSE.md