- 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.
推薦閱讀
- 高手是如何做產品設計的(全2冊)
- Angular UI Development with PrimeNG
- The Modern C++ Challenge
- Instant Zepto.js
- Python編程與幾何圖形
- bbPress Complete
- Advanced Oracle PL/SQL Developer's Guide(Second Edition)
- Protocol-Oriented Programming with Swift
- AIRIOT物聯網平臺開發框架應用與實戰
- Java 從入門到項目實踐(超值版)
- Learning Concurrency in Python
- JSP大學實用教程
- HTML5+CSS3+JavaScript案例實戰
- 像程序員一樣使用MySQL
- TensorFlow+Keras深度學習算法原理與編程實戰