Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. type A = {
  2. prop1: string,
  3. prop2: {
  4. prop3: string
  5. }
  6. }
  7.  
  8. function isA(obj:any): boolean {
  9. // What should be here?
  10. }
  11.  
  12. {
  13. prop1: "Hello",
  14. prop2: {
  15. prop3: "World"
  16. }
  17. }
  18.  
  19. {
  20. prop1: "Hello",
  21. prop2: {
  22. prop3: "World"
  23. },
  24. moreProps: "I don't care about"
  25. }
  26.  
  27. {
  28. foo: "Hello",
  29. bar: {
  30. prop3: "World"
  31. }
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement