Commit 6e2b0b0942ba7f0b2a60ecbf703bb39a910e60ed
Update README.md
Matt McKegg authored on 6/20/2017, 1:30:54 AMGitHub committed on 6/20/2017, 1:30:54 AM
Parent: 8e28bf396920836c01fd56e791f641c8a34675bb
Files changed
README.md | changed |
README.md | |||
---|---|---|---|
@@ -237,15 +237,15 @@ | |||
237 | 237 … | ## Transforms | |
238 | 238 … | ||
239 | 239 … | Take one or more observables and transform them into an observable | |
240 | 240 … | ||
241 | -- [Computed](#Computed) | ||
241 … | +- [computed](#computed) | ||
242 | 242 … | - concat | |
243 | 243 … | - dictToCollection | |
244 | 244 … | - idleProxy | |
245 | 245 … | - keys | |
246 | 246 … | - lookup | |
247 | -- [Map](#Map) | ||
247 … | +- [map](#map) | ||
248 | 248 … | - merge | |
249 | 249 … | - throttle | |
250 | 250 … | - when | |
251 | 251 … | ||
@@ -255,11 +255,13 @@ | |||
255 | 255 … | ||
256 | 256 … | ``` js | |
257 | 257 … | //observable that is true if A or B are true | |
258 | 258 … | ||
259 | -var Computed = require('mutant/computed') | ||
259 … | +var computed = require('mutant/computed') | ||
260 | 260 … | ||
261 | -var aOrB = Computed([a, b], function (a, b) { return a || b }) | ||
261 … | +var aOrB = computed([a, b], (a, b) => { | ||
262 … | + return a || b | ||
263 … | +}) | ||
262 | 264 … | ``` | |
263 | 265 … | ||
264 | 266 … | Once again, similar to the observ and observable implementations. It has a few key differences though. | |
265 | 267 … |
Built with git-ssb-web