clojure-thread-js
Clojure threading macro. Supports first, last, and as macro. No support for binding. Might be useful for testing React / Redux reducer.
Usage
const thread = // first// returns 9thread // last// returns -9thread // as// returns -8// second argument must be a function that// takes a placeholder as input (which is just// an empty object) and// returns an array of functions or arraysthread // React Redux reducerconst reducer = { } const state = thread console
License
MIT