No methods found matching your search.
Live Editing
Modify the input array or callback in any example and instantly see updated results.
30+ Methods
Comprehensive coverage of every standard array method with real, runnable code.
Browser Compatibility
Each method shows a compatibility badge so you know which environments are supported.
Copy & Go
One-click copy of any example code to paste directly into your project.
Frequently Asked Questions
What is the difference between map and forEach?▼
map returns a new array with transformed elements, while forEach executes a function for each element but returns undefined. Use map when you need the resulting array; use forEach for side effects.
Which methods mutate the original array?▼
Mutating methods include push, pop, shift, unshift, splice, sort, reverse, and fill. Methods like map, filter, and slice return new arrays without modifying the original.
Are these methods supported in all browsers?▼
Most methods are supported in all modern browsers. Methods like flat and flatMap require Chrome 69+, Firefox 62+, Safari 12+, or Edge 79+. Check the compatibility badge on each card for details.