xor-compose
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i xor-compose

Weekly Downloads

3

Version

0.0.3

License

MIT

Unpacked Size

1.35 kB

Total Files

4

Last publish

Collaborators

  • khai96_