Created
March 27, 2019 07:29
-
-
Save vasylpb/186735e2cf253fe2073e42f75650de0c to your computer and use it in GitHub Desktop.
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 significantDigits = (value = 0) => | |
new Intl.NumberFormat(formats.LOCALES, { minimumSignificantDigits: 3, maximumSignificantDigits: 4 }).format(value); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment