0.2.1 • Published 7 years ago

@jimmyhmiller/zaphod v0.2.1

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

Zaphod

Travis Coveralls npm Gitter API Docs

Clojure's immutable data API for JavaScript's own data structures, using the function bind operator.

import { inc, update } from 'zaphod';

const state = { count: 0 };

state::update('count', inc)
// => { count: 1 }

However, you don't need to know Clojure to make the most of Zaphod. 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 --save zaphod
# or
https://unpkg.com/zaphod@0.2.0

Check out the getting started guide for an in-depth explanation on configuring Babel to work with the function-bind operator.