📜  rxjs of vs from - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:10.185000             🧑  作者: Mango

代码示例2
They both transform values into observables except 'from' will convert from:
- a subscribable object, 
- a Promise
- an Observable-like
- an Array
- an iterable or an array-like object to be converted

'of' will take any value!