Ad
  • Custom User Avatar

    Well I prefer to create two separate functions instead of one but bigger. First one - capitalizeFirstLetter(string) and second one which uses it while mapping. That makes it more clear in my opinion.