- Hands-On Functional Programming with TypeScript
- Remo H. Jansen
- 130字
- 2021-07-02 14:03:12
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
推薦閱讀
- Instant Node Package Manager
- C++案例趣學
- 構建移動網站與APP:HTML 5移動開發入門與實戰(跨平臺移動開發叢書)
- C語言程序設計基礎與實驗指導
- 數據結構(Python語言描述)(第2版)
- Java開發入行真功夫
- Java程序設計與實踐教程(第2版)
- Bootstrap 4:Responsive Web Design
- 可解釋機器學習:模型、方法與實踐
- 全棧自動化測試實戰:基于TestNG、HttpClient、Selenium和Appium
- 新印象:解構UI界面設計
- 一步一步跟我學Scratch3.0案例
- 貫通Tomcat開發
- Python預測之美:數據分析與算法實戰(雙色)
- C# 7.1 and .NET Core 2.0:Modern Cross-Platform Development(Third Edition)