Skip to content

Instantly share code, notes, and snippets.

@Ibro
Last active December 9, 2017 07:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ibro/4b380ed770e56a7d5281e34d015d1680 to your computer and use it in GitHub Desktop.
Save Ibro/4b380ed770e56a7d5281e34d015d1680 to your computer and use it in GitHub Desktop.
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