Here are 4 ways to split a word into an array of characters. "Split" is the most common and more robust way. But with the addition of ES6, there ...
For further actions, you may consider blocking this person and/or reporting abuse
Thanks for the post! I didn't know that
split
method andspread
operator have different behavior.I looked at grapheme clusters one step deeper and learned that even
...
may give wrong results for complex emojis.There is even grapheme splitter library to break strings in characters as expected.
I didn't know that
.bold
exist! HehYa, it does! But don't use it lol because it's deprecated. I just wanted to find a method that was only part of
String
and not anArray
and that's the one I found. Which made me realize these two objects have similar methods πIntersting and inspiring article!
Can I translate it into Chinese to help more developers?
I will give credit at the top of the article.
You bet Jack! My code notes aren't mean to be shared! Thank you so much for wanting to translate it π
You can find the markdown and original image in my repo:
github.com/samanthaming/samanthami...
(I'd recommend checking the markdown in my repo because I keep that up to date, and sometimes I might forget to edit the article on dev π )
Let me know if you need anything that can help with your translation π
ok. star and watch.
This is so incredibly in depth! I always learn something new from your posts, and I've been using JS for more than 20 years! Thank you!
Thanks Brian! That makes me so happy to hear that you still learned something even with your extensive background. I want to follow your attitude, have that StudentMindset even after 20 years. I think itβs one of the thing I love about tech, itβs always evolving, so you never stop learning ππ
Thank you so much for your posts. really easy to understand . I am more visual person and your posts are amazing throw that. thank you !
Same! I just need to learn video editing and hopefully one day I can make video tutorials of these π
Thank you for your kind words, so glad you found my code notes helpful π Btw, I also have a series where I try to explain common code interview questions using pictures that you might also like π samanthaming.com/pictorials/
I always loved your blogs. Keep it coming, Samantha. π
You bet! Thanks for the encouragement! So happy you found them helpful ππ