tsaphod
v0.3.0
Published
Clojure's API for JavaScript's Objects
Downloads
3
Maintainers
Readme
Tsaphod
Tsaphod is a TypeScript fork of Zaphod, without the stalled bind operator proposal
Clojure's immutable data API for JavaScript's own data structures.
import { inc, update } from 'tsaphod';
const state = { count: 0 };
update(state, 'count', inc)
// => { count: 1 }
However, you don't need to know Clojure to make the most of Tsaphod. This library is just a set of JavaScript functions that make working with immutable data more fun!
Find the docs, cheatsheet and rationale at the website.
npm install tsaphod
Note: Tsaphod is an ES module and requires Node >= 12.20