Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/rksm/koyo
- Owner: rksm
- Created: 2015-09-10T03:38:03.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-01-24T01:57:47.000Z (almost 9 years ago)
- Last Synced: 2024-10-13T10:25:22.910Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 16.6 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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)
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