Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/souenzzo/vlop
value oriented programming utilities for javascript
https://github.com/souenzzo/vlop
data-driven functional immutable javascript
Last synced: 2 months ago
JSON representation
value oriented programming utilities for javascript
- Host: GitHub
- URL: https://github.com/souenzzo/vlop
- Owner: souenzzo
- Created: 2018-03-23T03:23:35.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2022-06-27T14:52:32.000Z (over 2 years ago)
- Last Synced: 2023-02-28T22:36:47.281Z (almost 2 years ago)
- Topics: data-driven, functional, immutable, javascript
- Language: JavaScript
- Size: 2.53 MB
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# vlop
> Value-Oriented programming utilities for javascript.## what?
It's just a functional/immutable javascript libraries.It uses only the native (mutable) objects, but offers a collection of functions to operate the data without mutating
checkout this presentation: [Value-Values](https://www.infoq.com/presentations/Value-Values)
## examples
Apply a function in a collection of values
```javascript
import * as vlop from "@vlop/core"const update_winners = (users) => (
vlop.map(user => vlop.update(user, "score", vlop.fnil(inc, 0)), users)
)
```## developing
### Testing
```shell
npm install
node --test
```