Guest User

Untitled

a guest
Feb 20th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. const getMin = (a: IUser, b: IUser): IUser => {
  2. if (min(a.userId, b.userId) === a) {
  3. return new User(a); // copy constructor
  4. } else {
  5. return new User(b);
  6. }
  7. }
Add Comment
Please, Sign In to add comment