摘要: Javascript's Object.assign is shadow merge, loadsh's _.merge is deep merge, but has probem for array. We can use Ramda.js to easy solve the problem: T 阅读全文
posted @ 2019-01-18 21:04 Zhentiw 阅读(426) 评论(0) 推荐(0)
摘要: If you're a library author, it's useful to expose your public types as interfaces, to allow your consumers to extend them if needed. For example: To r 阅读全文
posted @ 2019-01-18 19:18 Zhentiw 阅读(202) 评论(0) 推荐(0)
摘要: Functor composition is a powerful concept that arises when we have one Functor nested in another Functor. It becomes even more powerful when both of t 阅读全文
posted @ 2019-01-18 17:52 Zhentiw 阅读(234) 评论(0) 推荐(0)