Redefined Isomorphic

This commit is contained in:
Hemanth.HM 2016-02-03 12:22:25 +05:30
parent 258b96023c
commit d7493fa192

View file

@ -309,7 +309,17 @@ let Identity = v => ({ chain: transform => transform(v) })
## Isomorphic
> When the same code is shared between the client and the server.
> Two objects are Isomorphic is they satisfy the condition: `compose(to, from) == Identity` and `compose(from, to) == Identity`
```js
const toChars = [].join;
const fromChars = ''.split;
fromChars.call(toChars.call([1,2,3])) // [ '1,2,3' ]
toChars.call(fromChars.call([1,2,3])) // '1,2,3'
```
---