Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rksm/koyo

Clojure-style utils lib, for JavaScript and not implemented in ClojureScript
https://github.com/rksm/koyo

Last synced: about 1 month ago
JSON representation

Clojure-style utils lib, for JavaScript and not implemented in ClojureScript

Awesome Lists containing this project

README

        

# Kōyō [![Build Status](https://travis-ci.org/rksm/koyo.svg?branch=master)](https://travis-ci.org/rksm/koyo)

Japan 2011 4

Photo by zoonyzoozoodazoo / CC BY

Not a [forest](https://github.com/swannodette/mori), not even a
[tree](http://ki-lang.org/).

## Rationale

Kōyō provides a minimal set of a Clojure-inspired functional API for working with JavaScript objects and collections in a pure (= immutable) functional style. It is focused on simplicity, efficiency, and small footprint. Most functions and methods provided by JavaScript (ES3, ES5, ES6) itself are often based on changing (= "mutating") existing objects. This makes writing pure functions much harder that it needs to be.

Note that [mori](https://github.com/swannodette/mori) has a very similar goal. Using it, however, introduces new data and collection types. If you don't need persistent data structures but want to work with normal JS objects and arrays in a functional style, look no further. If you want a larger set of features for adding FP to JavaScript check out mori, [Ramda](http://ramdajs.com/), [Immutable](https://facebook.github.io/immutable-js/), or [Underscore](http://underscorejs.org/) / [lodash](https://lodash.com/).

## API

### Contents