Advertisement
Guest User

Untitled

a guest
Mar 26th, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. class ChatScreenPresenter {
  2. function formatChatMessage(message) {
  3. return `${message.sender}: ${message.content}`;
  4. }
  5.  
  6. // ... more functions to format chat screen components
  7. }
  8.  
  9. class CustomerDetailsScreenPresenter {
  10. function formatCustomerAddress(address) {
  11. return `${address.street}, ${address.city}, ${address.country}`;
  12. }
  13.  
  14. // ... more functions to format customer details screen components
  15. }
  16.  
  17. class StringCleaner {
  18. function cleanEmptySpaces(stringToClean) {
  19. return stringToClean.replace(' ', '');
  20. }
  21.  
  22. // ... more functions to clean strings
  23. //
  24. // For example:
  25. // function cleanSpecialSigns(stringToClean)
  26. // function cleanEmojis(stringToClean)
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement