JavaScript Arrays Cheat Sheet

Static Properties Array.from(‘123’); // [‘1′,’2′,’3’] Array.isArray([1,2,3]); // true Array.of(1,2,3) // [1,2,3] Instance Properties Search or run test on array [1,2,2,3].indexOf(2); // 1 [1,2,2,3].lastIndexOf(2); // 2