Created
February 27, 2024 13:10
-
-
Save MrGrootx/f33cf33026510ab385eb6f1e1826499e to your computer and use it in GitHub Desktop.
js name Overflow
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
const name = | |
product.name.length > 21 | |
? product.name.substring(0, 20) + ".." | |
: product.name; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment