Last active
December 11, 2017 08:29
-
-
Save Ibro/c00b73388226fd4c40059b6c4bcd570b 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
export default class UserHelpers { | |
static getFullName(user) { | |
return `${user.firstName} ${user.lastName}`; | |
} | |
static getCategory(userPoints) { | |
return userPoints > 70 ? 'A' : 'B'; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment