Arrays store ordered lists of values in JavaScript. Built-in methods let you add, remove, search, and transform data without reinventing loops every time. This hub links to 39 method tutorials, each with syntax, five try-it examples, and FAQs.
01
Add / remove
push, pop, shift
02
Search
find, includes
03
Transform
map, filter
04
Aggregate
reduce, some
05
Immutable
slice, concat
06
39 guides
Full index
Fundamentals
Introduction
JavaScript arrays are versatile collections for storing lists of numbers, strings, objects, or mixed types. The language ships with dozens of helper methods on Array.prototype so you can manipulate data declaratively—often in one readable chain instead of manual for loops.
What Are Array Methods?
An array method is a function you call on an array (or on the Array constructor for static helpers). Some methods mutate the original array; others return a new array or value and leave the source untouched. Knowing which is which prevents subtle bugs.
💡
Beginner Tip
Start with push(), pop(), length, and bracket notation arr[0]. Then learn map(), filter(), and find()—they appear in almost every real-world codebase.
Mutating vs Non-Mutating
Mutating — push(), splice(), sort(), reverse() change the array in place.
Non-mutating — map(), filter(), slice(), concat() return new data.
Static — Array.from(), Array.isArray(), Array.of() live on the constructor, not instances.
Foundation
📝 Syntax
Call an instance method on an array variable:
JavaScript
const fruits = ["apple", "banana", "cherry"];
fruits.push("date"); // mutates — adds to end
const upper = fruits.map(f => f.toUpperCase()); // new array
Method categories
Category
Example methods
Purpose
Access & length
at(), slice()
Read elements by index
Add / remove
push(), pop(), splice()
Change array size
Search
includes(), find(), indexOf()
Locate values
Transform
map(), filter(), flat()
Build new arrays
Aggregate
reduce(), some(), every()
Summarize or test all items
Cheat Sheet
⚡ Quick Reference
Goal
Method
Mutates?
Add to end
push(item)
Yes
Remove from end
pop()
Yes
Copy a portion
slice(start, end)
No
Transform each item
map(fn)
No
Keep matching items
filter(fn)
No
Sum to one value
reduce(fn, init)
No
Context
When to Use Which Methods
Stack operations — push() / pop() for last-in-first-out patterns.
Queue operations — push() + shift() (or use a dedicated queue structure for large data).
Display lists — map() to render UI from raw data.
User filters — filter() to show only matching rows.
Totals & counts — reduce() to sum prices or build objects.
Preview
👀 Sample Array
A typical array of strings with zero-based indexes:
Mutating while iterating — avoid splice() inside a forEach() over the same array.
Sparse arrays — holes skip callbacks in map() and forEach().
forEach vs break — you cannot break out of forEach(); use a for...of loop or some().
Reference equality — includes() uses SameValueZero; objects match by reference, not deep equality.
🧠 How Array Methods Run
1
Call on an array
Invoke arr.method(args) or Array.from(iterable) for static helpers.
Invoke
2
Engine processes elements
Iterators walk indexes; some methods skip holes or stop early (find, some).
Iterate
3
Return a result
New array, boolean, single value, iterator, or mutated original—depends on the method.
Return
=
📦
Composable pipelines
Chain non-mutating methods for readable data transformations in apps and APIs.
Compatibility
Browser Support
Core methods like push(), map(), filter(), and reduce() work in every modern browser and Node.js. Newer methods (at(), findLast(), with()) have dedicated notes on their tutorial pages.
✓ Baseline · ES5–ES2023
Array.prototype methods
Most methods are production-safe in Chrome, Firefox, Safari, Edge, IE 9+, and all modern Node.js versions. Check individual tutorials for ES2022+ additions.
99%Core methods
Google ChromeAll versions · Desktop & Mobile
Full support
Mozilla FirefoxAll versions · Desktop & Mobile
Full support
Apple SafariAll versions · macOS & iOS
Full support
Microsoft EdgeAll versions · Chromium & Legacy
Full support
Internet ExplorerIE 6+ · Legacy environments
Full support
OperaAll modern versions
Full support
Array methodsExcellent
Bottom line: Safe to use core methods everywhere except very old IE8 environments. Polyfill or check individual pages for ES2022+ APIs like at() and with().
Wrap Up
🎉 Conclusion
JavaScript array methods turn plain lists into powerful data tools. Start with Getting Started tutorials, then use the searchable index to explore all 39 guides.
Each method page includes syntax, five try-it examples, browser support, and FAQs. Combine methods in chains to keep application code short and expressive.
Rely on delete arr[i] to remove items — use splice()
Memorize all 39 names at once
Summary
Key Takeaways
Knowledge Unlocked
Five things to remember about array methods
Your gateway to 39 method tutorials.
5
Core concepts
[]01
Ordered lists
Zero-based indexes
Basics
+02
Mutate
push, splice
In-place
map03
Transform
map, filter
New data
?04
Search
find, includes
Lookup
3905
Index
Search all
Ref
❓ Frequently Asked Questions
Array methods are built-in functions on Array.prototype (or the Array constructor) that help you read, add, remove, transform, and search elements. Examples include push(), map(), filter(), and reduce().
Methods like push(), pop(), shift(), unshift(), splice(), sort(), reverse(), fill(), and copyWithin() change the array in place. Methods like map(), filter(), slice(), and concat() return a new array or value without modifying the original.
map() runs a callback on each element and returns a new array of results. forEach() also runs a callback for each element but returns undefined — use it for side effects like logging, not for building a new array.
Use find() when you need the first matching element (or undefined). Use filter() when you need every element that matches, returned as a new array.
Use Array.isArray(value). It is more reliable than typeof because typeof [] returns 'object'.
Read the overview, try the five examples, then open at() or push() from Getting Started. Use the search box to jump to any of the 39 method tutorials.
Did you know?
Method chaining works because map(), filter(), and slice() each return a new array. You can write arr.filter(fn).map(fn) in one expression without temporary variables.