Last active
May 19, 2016 13:15
-
-
Save jbmilgrom/de7b6f1e6184f52da2ed9b96ef33afc5 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
var fullName = 'last + ", " + first'; | |
var getFullName = $parse(fullName); // getFullName is the parseFn! | |
var context = {first: 'steph', last: 'curry'}; | |
getFullName(context); // => curry, steph | |
context = {first: 'russ', last: 'westbrook'}; | |
getFullName(context); // => westbrook, russ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment