#Split a string into a list and iterate through it

3 messages · Page 1 of 1 (latest)

tacit nebula
#

Good morning. So I come to ask you a somewhat dumb question, I know that to normally retrieve a list of the elements of a character string you have to use the .split() method, except when I want to do the .length() method on my list obtained to retrieve the size of the list to make a loop that traverses it, it does not work it tells me that .length is not a valid function or method, so that probably I do not apply it not to a list. But I don't understand since normally by performing .split() I am supposed to retrieve a list, do you have an idea of ​​the problem?

spice sandalBOT
#

• What's your exact discord.js npm list discord.js and node node -v version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.

plain radish
#

not djs related, #1081585952654360687