Last active
May 23, 2018 19:18
-
-
Save olvap/b5873390b60459f7377fefdfb637b6fe 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
export const elipsisTetx(text) => | |
text.length < 35 ? text : `${text.substring(0, 35)}...` |
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
require elipsisText from './elipsis_text' | |
elipsisTetx('un texto') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment