Created
          June 20, 2018 07:22 
        
      - 
      
 - 
        
Save keithwhor/dfd5d72ca7462fd5115b1f2083d103fd to your computer and use it in GitHub Desktop.  
    Code.xyz Function: User E-mail List Generation
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | /** | |
| * Creates an e-mail list from provided user data | |
| */ | |
| module.exports = async (users = []) => { | |
| return users.map(user => { | |
| return `${user.first_name} <${user.email}>`; | |
| }).join(', '); | |
| } | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment