Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import { from } from 'rxjs';
- interface Car {
- id: string;
- name: string;
- }
- const carsArray: Car[] = [
- { id: 'xyz', name: 'Mazda' },
- { id: 'abc', name: 'Porsche' }
- ];
- from(carsArray).subscribe();
Add Comment
Please, Sign In to add comment