Created
July 21, 2019 01:00
-
-
Save Javiani/a444bf143064d21521acb98aa264adc7 to your computer and use it in GitHub Desktop.
Snippets for Medium
This file contains 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
const fullname = firstname | |
.then( fname => middleName.then( mname => `${fname} ${mname}`) ) | |
.then( name => lastname.then( lname => `${name} ${lname}` ) ) | |
fullname.then( name => console.log( name ) ) | |
// 'Marcus Geoffrey Johnson' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment