Answers for "rxjs of vs from"

0

rxjs of vs from

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!
Posted by: Guest on October-29-2021

Browse Popular Code Answers by Language