Skip to content

1 or 2 credits, some free · 1 credit is about $1

pocketshelf

JavaScript Array Methods Cheat Sheet

A 3-page reference for array methods: 32 short entries with copy-ready code.

ForDevelopers

javascript-array-methods-cheat-sheet.pdfShowing 24 of 95 lines
// at
const last = [1, 2, 3].at(-1); // 3

// concat
const all = [1, 2].concat([3], [4, 5]);

// every
const allPositive = [1, 2, 3].every((n) => n > 0);

// fill
const zeros = new Array(3).fill(0); // [0, 0, 0]

// filter
const evens = [1, 2, 3, 4].filter((n) => n % 2 === 0);

// find
const user = users.find((u) => u.id === 7);

// findIndex
const i = ["a", "b"].findIndex((x) => x === "b"); // 1

// findLast
const lastBig = [5, 12, 8, 130].findLast((n) => n > 10);

What's inside

Format
PDF, Markdown
Contents
32 sections · 3 pages
Version
1.0 · Updated 3 Oct 2026
Licence
Commercial What this means
Checked
Checked before it ships
  • javascript-array-methods-cheat-sheet.pdfPDF · 23 KB
  • javascript-array-methods-cheat-sheet.mdMarkdown · 3 KB
  • LICENSE.txtadded to every download

About this item

A compact, printable reference for array methods in JavaScript. Each of the 32 entries has a one-line explanation and a small example you can paste into your editor. The PDF uses a two-column A4 layout designed to sit next to your keyboard, and the same content ships as Markdown so you can search it or drop it into your notes. Examples target modern JavaScript (ES2023). Commercial license included.

Reviews

No reviews yet.

You might also grab