DEV Community

JavaScript Array Methods Series' Articles

Back to Dillion Megida's Series
Array.Map() - for mapping items in an array
Cover image for Array.Map() - for mapping items in an array

Array.Map() - for mapping items in an array

Reactions 15 Comments 2
2 min read
Array.filter() - for filtering items from an array
Cover image for Array.filter() - for filtering items from an array

Array.filter() - for filtering items from an array

Reactions 11 Comments 2
2 min read
Array.flat() - for flatting nested arrays within an array
Cover image for Array.flat() - for flatting nested arrays within an array

Array.flat() - for flatting nested arrays within an array

Reactions 9 Comments 2
2 min read
Array.forEach() - for looping through items in an array
Cover image for Array.forEach() - for looping through items in an array

Array.forEach() - for looping through items in an array

Reactions 6 Comments 1
2 min read
Array.slice() - for slicing an array
Cover image for Array.slice() - for slicing an array

Array.slice() - for slicing an array

Reactions 6 Comments
2 min read
Array.some() - for testing that at least one item meets a condition
Cover image for Array.some() - for testing that at least one item meets a condition

Array.some() - for testing that at least one item meets a condition

Reactions 15 Comments 4
2 min read
Array.flatMap() - for applying a map and a flat on an array
Cover image for Array.flatMap() - for applying a map and a flat on an array

Array.flatMap() - for applying a map and a flat on an array

Reactions 9 Comments
2 min read
Array.every() - for checking if all items meet a condition
Cover image for Array.every() - for checking if all items meet a condition

Array.every() - for checking if all items meet a condition

Reactions 9 Comments
2 min read
Array.reverse() - for reversing an array
Cover image for Array.reverse() - for reversing an array

Array.reverse() - for reversing an array

Reactions 9 Comments 2
2 min read
Array.reduce() - for reducing an array to a single value
Cover image for Array.reduce() - for reducing an array to a single value

Array.reduce() - for reducing an array to a single value

Reactions 12 Comments
3 min read
Array.pop() - for popping the last item of an array
Cover image for Array.pop() - for popping the last item of an array

Array.pop() - for popping the last item of an array

Reactions 5 Comments
1 min read
Array.shift() - for shifting the first item in an array
Cover image for Array.shift() - for shifting the first item in an array

Array.shift() - for shifting the first item in an array

Reactions 7 Comments
1 min read
Array.splice() - for removing, replacing or adding values to an array
Cover image for Array.splice() - for removing, replacing or adding values to an array

Array.splice() - for removing, replacing or adding values to an array

Reactions 8 Comments
3 min read