Suggest an editImprove this articleRefine the answer for “What does from() do in RxJS?”. Your changes go to moderation before they’re published.Approval requiredContentWhat you’re changing🇺🇸EN🇺🇦UAPreviewTitle (EN)Short answer (EN)`from()` in RxJS is a function that turns **something "ordinary" into a stream (**`Observable`**)**. **Key point:** it turns an array, string, or promise into an Observable.Shown above the full answer for quick recall.Answer (EN)Image`from()` in RxJS is a function that turns **something "ordinary" into a stream (**`Observable`**)**. --- ### What you can pass to `from()`: 1. **An array** ```ts from([1, 2, 3]).subscribe(x => console.log(x)); // Outputs: 1, 2, 3 (one value at a time) ``` 2. **A promise** ```ts from(fetch('https://api.example.com')).subscribe(response => ...); // Fires when the promise resolves ``` 3. **A string, Map, Set, Iterable** ```ts from('abc').subscribe(x => console.log(x)); // Outputs: a, b, c ``` --- ### Why you need it: Angular often works with `Observable`, but you might have a plain array or a promise, `from()` turns them into a reactive stream. --- ### Conclusion: `from()` is a way to take "ordinary" data and start **working with it reactively**. It turns an array, string, or promise into an `Observable`. From there you can apply `.pipe()`, `map`, `filter`, `subscribe`, and everything else.For the reviewerNote to the moderator (optional)Visible only to the moderator. Helps review go faster.