lightcompose
v0.0.1
Published
componse functions
Downloads
2
Readme
compose
import compose from 'compose'
var greeting = (firstName, lastName) => 'hello, ' + firstName + ' ' + lastName
var toUpper = str => {
return str.toUpperCase()
}
var test = p => p + ' just for test'
var c = compose (greeting, toUpper, test)
c('Tom', 'Cat') // "HELLO, TOM CAT just for test"