r/learnjavascript • u/wilfredinni • Apr 29 '19
I made a Javascript cheat sheet
I don't know if it can help someone else besides me, but, here it is the Github Project and the web site I made.
Contributions and feedback are always welcome.
Edit: fixed the repo link.
254
Upvotes
3
u/r3jjs Apr 30 '19
For the most part, it looks good.
One thing do -- please use another example for
String.prototype.split. Using the''string separate a string into characters only works for strings that it into the Unicode Basic Multilingual plane. Higher-order characters, which longer than two bytes, gets ripped apart.String.prototype.lengthhas a similar issue.(
Array.from(...)is a good way to split up strings.https://mathiasbynens.be/notes/javascript-unicode