Created
December 9, 2017 07:20
-
-
Save Ibro/7f061f7ce89bcc7b0a761a2aeda53679 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 function getUserFullName(user) { | |
return `${user.firstName} ${user.lastName}`; | |
} | |
export function getUserCategory(userPoints) { | |
return userPoints > 70 ? 'A' : 'B'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment