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