My Javascript notes, stuff that I use often in the curent project I'm working on
|
slice
|
shallow
|
|
splice
|
changes
|
string = string.slice(0, -1);
|
string.substr(start, length)
|
|
string.substring(start, stop)
|
Undefined |
null |
false |
+0, -0, and NaN |
"" |
array1 = array1.**concat**(array2);
array1.**includes**('xyz')
(a, b) => a.toLowerCase().localeCompare(b.toLowerCase())
No comments yet.
Cheatography n. The art of mapping complex subjects into clear, instantly navigable reference guides.