上一页 1 ··· 300 301 302 303 304 305 306 307 308 ··· 494 下一页
摘要: Values assigned with let and const are seen everywhere in JavaScript. It's become common to hear them explained like so: "const creates an constant (i 阅读全文
posted @ 2018-05-21 02:11 Zhentiw 阅读(138) 评论(0) 推荐(0)
摘要: function solution( tags = ['ul', 'ol']) { const [uls, ols] = tags.map(tag => Array.from($(`${tag}`))); const [logUl, logOl] = tags.map(tag => new Logg 阅读全文
posted @ 2018-05-17 05:02 Zhentiw 阅读(270) 评论(0) 推荐(0)
摘要: JavaScript provides primitive types and means of processing those. However, those are not enough. Real data must somehow come into the program and dat 阅读全文
posted @ 2018-05-15 21:59 Zhentiw 阅读(284) 评论(0) 推荐(0)
摘要: Functions are first class in JavaScript. This means we can treat a function like any other data. This also means we can end up with a function as the 阅读全文
posted @ 2018-05-14 21:02 Zhentiw 阅读(247) 评论(0) 推荐(0)
摘要: The alt method allows us to recover from a nothing with a default Maybe, but sometimes our recovery efforts might need to enlist some logic to recover 阅读全文
posted @ 2018-05-14 18:54 Zhentiw 阅读(380) 评论(0) 推荐(0)
摘要: Once we’re using Maybes throughout our code, it stands to reason that at some point we’ll get a Maybe and want to continue applying transformations. W 阅读全文
posted @ 2018-05-14 17:54 Zhentiw 阅读(385) 评论(0) 推荐(0)
摘要: In this lesson I refactor some code that utilizes the Mutation component to update client-side cache to use the new ApolloConsumer component baked int 阅读全文
posted @ 2018-05-13 01:46 Zhentiw 阅读(402) 评论(0) 推荐(0)
摘要: Sometimes, we run into situations where we end up with a Maybe within the context of another Maybe. Nested structures like this can get really confusi 阅读全文
posted @ 2018-05-11 20:36 Zhentiw 阅读(524) 评论(0) 推荐(0)
摘要: In this lesson, we’ll look at the propPath utility function. We’ll ask for a property multiple levels deep in an object and get back a Maybe. We’ll ge 阅读全文
posted @ 2018-05-11 20:18 Zhentiw 阅读(219) 评论(0) 推荐(0)
摘要: In this lesson, we’ll use a Maybe to safely operate on properties of an object that could be undefined. We’ll use our initial code as the basis for a  阅读全文
posted @ 2018-05-11 19:34 Zhentiw 阅读(229) 评论(0) 推荐(0)
上一页 1 ··· 300 301 302 303 304 305 306 307 308 ··· 494 下一页