Skip to content

Instantly share code, notes, and snippets.

@daniloab
Created March 6, 2020 14:33
Show Gist options
  • Save daniloab/4ad6124ab538b7565ccbe2bde78f2007 to your computer and use it in GitHub Desktop.
Save daniloab/4ad6124ab538b7565ccbe2bde78f2007 to your computer and use it in GitHub Desktop.
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