Skip to content

Commit

Permalink
📝 Better runkit integration
Browse files Browse the repository at this point in the history
  • Loading branch information
nlepage committed Jul 19, 2017
1 parent 5fcdf94 commit b4593b9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ immutad●t gives you a short and meaningful syntax to apply operations on immut
[![CircleCI](https://circleci.com/gh/Zenika/immutadot.svg?style=shield&circle-token=8b309750f5785783ec9fb4531ba097da60563beb)](https://circleci.com/gh/Zenika/immutadot)
[![codecov](https://codecov.io/gh/Zenika/immutadot/branch/master/graph/badge.svg)](https://codecov.io/gh/Zenika/immutadot)
[![npm version](https://badge.fury.io/js/immutadot.svg)](https://badge.fury.io/js/immutadot)
[![Try on RunKit](https://badge.runkitcdn.com/immutadot.svg)](https://npm.runkit.com/immutadot)
[![](https://img.shields.io/badge/documentation-yes-brightgreen.svg)](https://zenika.github.io/immutadot)

## Immutability
Expand Down Expand Up @@ -85,7 +86,7 @@ in node:
// → { nested: { prop: [1, 2, 3, 4] } }
```

Feel free to try immutad●t on [runkit](https://npm.runkit.com/immutadot).
Feel free to [try immutad●t on runkit](https://npm.runkit.com/immutadot).

## Documentation

Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,6 @@
"test:coverage": "jest --coverage && codecov",
"docs": "jsdoc -c jsdoc.json",
"docs:private": "jsdoc -c jsdoc.json -p"
}
},
"runkitExample": "require('lodash')\nconst immutadot = require('immutadot')\n\nimmutadot.push({ nested: { prop: [1, 2] } }, 'nested.prop', 3, 4)\n// → { nested: { prop: [1, 2, 3, 4] } }\n\npickBy({ nested: [{ a: 1, b: 2, c: 3, d: 4 }, { e: 6 }] }, 'nested.0', v => v < 3)\n// → { nested: [{ a: 1, b: 2 }, { e: 6 }] }"
}

0 comments on commit b4593b9

Please sign in to comment.