Steph pfp
Steph
@assydcrypto
Tip of the day #25 - JS, char are you in there ? Do you know how to check a character (or a substring) presence ni a string in Javascript ? Switching daily from a language to another, sometimes these kind of simple needs are hard to remember ;) Simplest form : test if (stringvar.includes(char)) If position needed : test if (stringvar.indexOf(char) > -1) Have fun, stay safe and be nice until next time, cheers ! 🤘🏼🍻 #javascript #Node
0 reply
0 recast
0 reaction