0.0.3 • Published 4 years ago

xor-compose v0.0.3

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

xor-compose

Compose multiple functions by XOR

Requirements

  • Node.js ≥ 8.9.0

Usage

import compose from 'xor-compose'

const a = () => 123
const b = string => string.length
const c = string => [...string].map(x => x.charCodeAt()).reduce((a, b) => a + b)

const fn = compose(a, b, c)
console.log(fn('abc'))

License

MIT © Hoàng Văn Khải

0.0.3

4 years ago

0.0.2

5 years ago

0.0.1

6 years ago

0.0.0

6 years ago