摘要:
Normally when we use 'map', we do the transform base on the output. 'contramap' can do the transform base on the input, which means, before the orgina 阅读全文
摘要:
Endo: It takes a type as string and output is the same type. It's concat methods works like composion. All the transform functions on the same input. 阅读全文
摘要:
There are two types of Loading events: DOMContentLoaded Loaded DOMEContentLoaded: It happens after index.html has been parsed. <!DOCTYPE html> <html> 阅读全文
摘要:
Let's say we have App.component.ts, it use provider inside component level: @Component({ selector: 'app-root', templateUrl: './app.component.html', st 阅读全文
摘要:
Rules Each page should have at least one <h1> Pages should be structured in a hierarchical manner <h1>: being the most important (usually page titles 阅读全文
摘要:
Reader Monad Continue with previous post, here we have some helper functions: const toUpper = s => s.toUpperCase(); const exclaim = s => `${s}!`; And 阅读全文
摘要:
Let's say we have two fucntions: const toUpper = s => s.toUpperCase(); const exclaim = s => `${s}!`; We want to combine those. But function itself doe 阅读全文