We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86d9603 commit eceef75Copy full SHA for eceef75
readme.md
@@ -313,16 +313,15 @@ john.age + five === ({name: 'John', age: 30}).age + (5)
313
314
An object that implements a `map` function which, while running over each value in the object to produce a new object, adheres to two rules:
315
316
-```js
317
-// preserves identity
318
-object.map(x => x) === object
+### Preserves identity
+```
+object.map(x => x) ≍ object
319
```
320
321
-and
+### Composable
322
323
324
-// composable
325
-object.map(x => f(g(x))) === object.map(g).map(f)
+object.map(compose(f, g)) ≍ object.map(g).map(f)
326
327
328
(`f`, `g` be arbitrary functions)
0 commit comments