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

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
主站蜘蛛池模板: 九江县| 合水县| 峡江县| 淳安县| 漳浦县| 高台县| 宁波市| 林周县| 夏津县| 房产| 延寿县| 舟山市| 东兰县| 延津县| 麻阳| 二连浩特市| 九台市| 汉阴县| 肇东市| 文登市| 和硕县| 达孜县| 太保市| 枞阳县| 栖霞市| 凤凰县| 武城县| 连江县| 公安县| 荔浦县| 灵台县| 泾源县| 柳林县| 嘉荫县| 伊吾县| 道孚县| 鸡东县| 阳原县| 青海省| 新邵县| 石景山区|