Created
May 22, 2018 22:07
-
-
Save WaldoJeffers/cd8353bdec0b119e91e83b0799ab5911 to your computer and use it in GitHub Desktop.
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
import { compose, head, split, get } from 'conductor' | |
const character = {name: 'Luke Skywalker'} | |
const getFirstName = compose(head, split(' '), get('name')) | |
getFirstName(character) // 'Luke' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment