clojure-thread-js-async
Clojure threading macro. Supports first
, last
, and as
macro. No
support for binding.
Usage
const thread = // first// returns 9await thread // last// returns -9await thread // 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 arraysawait thread // React Redux reducerconst reducer = { } const state = thread console