Last active
February 2, 2018 01:35
-
-
Save jcreamer898/a1028b81c0189824017af5b2d88a68d2 to your computer and use it in GitHub Desktop.
Stuff for my typescript blog
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
const formatPrice = (num, symbol = "$") => | |
`${symbol}${num.toFixed(2)}`; formatPrice("1234"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment