- Mastering JavaScript Promises
- Muzzamil Hussain
- 86字
- 2021-07-16 13:46:50
Interactive promises
Interactive promises are extended promises that add more value to the paradigm by adding two more functions to its arsenal, get
and call
:
get(propertyName)
: This function requests the given property from the target of promise. This also returns a promise to provide the value of the stated property from promise's target.call(functionName, arg1, arg2…)
: This function requests to call the given method/function on the target of promise. It also returns a promise to provide the return value of the requested function call.
推薦閱讀
- 多媒體CAI課件設計與制作導論(第二版)
- C語言程序設計案例教程(第2版)
- C#程序設計(慕課版)
- Mastering Kali Linux for Web Penetration Testing
- 正則表達式經典實例(第2版)
- C語言程序設計案例精粹
- Spring Boot企業級項目開發實戰
- Hadoop 2.X HDFS源碼剖析
- 愛上C語言:C KISS
- 會當凌絕頂:Java開發修行實錄
- 計算機應用基礎案例教程(第二版)
- Flink核心技術:源碼剖析與特性開發
- C Primer Plus(第6版)中文版【最新修訂版】
- 一步一步學Spring Boot:微服務項目實戰(第2版)
- Hands-On Data Visualization with Bokeh