Last active
December 9, 2017 07:20
-
-
Save Ibro/4b380ed770e56a7d5281e34d015d1680 to your computer and use it in GitHub Desktop.
JavaScript helpers - https://codingblast.com/organising-javascript-helpers
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 { getUserCategory, getUserFullName } from './user-helpers'; | |
const alice = { | |
firstName: 'Alice', | |
lastName: 'Gray', | |
points: 78, | |
}; | |
const fullName = getUserFullName(alice); | |
const category = getUserCategory(alice.points); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment