Creating Observables From Javascript Data Types
Learn to create and use Observables from JavaScript data types like arrays, events, and callback functions.
Creating Observables from arrays
We can make any array-like object that can iterate into an Observable by using the versatile from
operator. The from
operator takes an array as a parameter and returns an Observable that emits each of its elements.
Get hands-on with 1400+ tech skills courses.