官术网_书友最值得收藏!

Mastering Functions

In Chapter 1, Functional Programming Fundamentals, we learned about some of the most fundamental functional programming concepts. Functions are one of the fundamental building blocks of any TypeScript application, and they are powerful enough to warrant an entire chapter being dedicated to them in order to explore their potential.

In this chapter, we are going to master the usage of functions. The chapter starts with a quick recap of a number of basic concepts and then moves on to some less commonly known function features and use cases:

  • Function types:
    • Function declarations and function expressions
    • Named and anonymous functions
  • Working with parameters:
    • Functions with optional parameters
    • Functions with default parameters
    • Functions with rest parameters
    • Function overloading
    • Specialized overloading signature
  • Function scope
  • Immediately-invoked functions
  • Tag functions and tagged templates
主站蜘蛛池模板: 绥宁县| 吴堡县| 新闻| 延长县| 冕宁县| 瑞安市| 广平县| 武穴市| 平谷区| 垦利县| 元阳县| 噶尔县| 盐山县| 依安县| 吉安市| 安多县| 英超| 固阳县| 奉贤区| 林州市| 岳普湖县| 瑞昌市| 登封市| 公安县| 绍兴市| 蕲春县| 江孜县| 普宁市| 桃源县| 都昌县| 衡水市| 临桂县| 多伦县| 翁源县| 东台市| 嘉黎县| 文登市| 松阳县| 天津市| 天峨县| 金湖县|