上一页 1 ··· 319 320 321 322 323 324 325 326 327 ··· 499 下一页
摘要: Transducers remove the requirement of being lazy to optimize for things like take(10). However, it can still be useful to "bind" a collection to a set 阅读全文
posted @ 2018-01-17 21:44 Zhentiw 阅读(224) 评论(0) 推荐(0)
摘要: A frequent use case when transducing is to apply a transformation to items without changing the type of the collection. In this lesson, we'll create a 阅读全文
posted @ 2018-01-17 20:52 Zhentiw 阅读(239) 评论(0) 推荐(0)
摘要: Our transduce function is powerful but requires a lot of boilerplate. It would be nice if we had a way to transduce into arrays and objects without ha 阅读全文
posted @ 2018-01-17 20:24 Zhentiw 阅读(179) 评论(0) 推荐(0)
摘要: Let's you have $10000, and you inverst 4 stocks. ['SPY', 'IBM', 'XOM', 'GOOG']. The allocation is [0.4, 0.4, 0.1, 0.1] separately. The way to calculat 阅读全文
posted @ 2018-01-17 20:02 Zhentiw 阅读(333) 评论(0) 推荐(0)
摘要: So far we've been transducing by manually calling .reduce() on arrays, but we want to be able to transduce over other collection types as well. In thi 阅读全文
posted @ 2018-01-16 20:23 Zhentiw 阅读(240) 评论(0) 推荐(0)
摘要: To make our composition more readable and easier to name we are going to ceate a compose function we can use to avoid having to manually nest our tran 阅读全文
posted @ 2018-01-16 17:44 Zhentiw 阅读(214) 评论(0) 推荐(0)
摘要: React is great for diffing between Virtual-DOM and rendering it to the dom. It also offers a naïve solution for diffing state in terms of setState. Ho 阅读全文
posted @ 2018-01-15 01:25 Zhentiw 阅读(271) 评论(0) 推荐(0)
摘要: Immer is a tiny library that makes it possible to work with immutable data in JavaScript in a much more straight-forward way by operating on a tempora 阅读全文
posted @ 2018-01-15 01:16 Zhentiw 阅读(280) 评论(0) 推荐(0)
摘要: In this lesson you will learn how create a re-usable component that gives the user the ability to dismiss the keyboard whenever they tap outside of a 阅读全文
posted @ 2018-01-15 00:55 Zhentiw 阅读(489) 评论(0) 推荐(0)
摘要: This is an introduction to CSSinJS that doesn't require any JavaScript knowledge, just a basic CSS. It shows how to convert a very basic button writte 阅读全文
posted @ 2018-01-15 00:49 Zhentiw 阅读(374) 评论(0) 推荐(0)
上一页 1 ··· 319 320 321 322 323 324 325 326 327 ··· 499 下一页