Created
March 6, 2020 14:33
-
-
Save daniloab/4ad6124ab538b7565ccbe2bde78f2007 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 getBiggerTextWidth = () => { | |
return labels.reduce((acc, cur) => { | |
if (cur.length >= acc.length) { | |
return cur; | |
} | |
return acc; | |
}, ''); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment