Skip to content

Instantly share code, notes, and snippets.

@Javiani
Created July 21, 2019 01:00
Show Gist options
  • Save Javiani/cdcde6d889d8bf487f4a088c596a1deb to your computer and use it in GitHub Desktop.
Save Javiani/cdcde6d889d8bf487f4a088c596a1deb to your computer and use it in GitHub Desktop.
Snippets for Medium
const lastname = Maybe(() => data.personsLastName[1].value)
.catch( _ => Promise.reject('Lastname was not found') )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment