daily pastebin goal
4%
SHARE
TWEET

Untitled

a guest Feb 16th, 2019 72 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import { pairs } from 'rxjs';
  2.  
  3. interface Car {
  4.   id: string;
  5.   name: string;
  6. }
  7.  
  8. const carsEntity: {[key: string]: Car} = {
  9.   'xyz': { id: 'xyz', name: 'Mazda' },
  10.   'abc': { id: 'abc', name: 'Porsche' }
  11. };
  12.  
  13. pairs(carsEntity).subscribe(console.log);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top