Created
April 18, 2021 04:30
-
-
Save davidgilbertson/02d113308b345c94873d3fa9e83eb6e2 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
const makeBigger = (stringOrNumber: string | number) => { | |
if (typeof stringOrNumber === 'string') { | |
return stringOrNumber.toUpperCase(); | |
} | |
return stringOrNumber * 4; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment