Advertisement
Guest User

Untitled

a guest
Feb 25th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. toJson() {
  2. return JSON.stringify(this, (key, value) => {
  3. if (key == 'parent') {
  4. return value.id;
  5. } else {
  6. return value;
  7. }
  8. });
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement