Repository files navigation
at();
concat();
copyWithin();
entries();
every();
fill();
filter();
find();
findIndex();
findLast();
findLastIndex();
flat();
flatMap();
forEach();
includes();
indexOf();
join();
keys();
lastIndexOf();
length();
map();
pop();
push();
reduce();
reduceRight();
reverse();
shift();
slice();
some();
sort();
splice();
toLocaleString();
toReversed()
toSorted();
toSpliced();
toString();
unshift();
values();
with();
push()
unshift()
concat()
splice()
at() – Access by index (supports negative index)
length – Get array length
includes() – Check if value exists
indexOf() / lastIndexOf() – Find index
find() – First match by condition
findIndex() – Index of first match
findLast() – Last match by condition
findLastIndex() – Last matching index
some() – At least one matches
some() – At least one matches
entries() – Get index + value iterator
keys() – Get index iterator
values() – Get value iterator
splice() – Replace elements
with() – Replace by index (immutable)
pop() – Remove last
shift() – Remove first
splice() – Remove by index
filter() – Remove by
fill() – Fill with value
copyWithin() – Copy part of array
reverse() – Reverse in place
sort() – Sort in place
map() – Transform values (returns new array)
flat() – Flatten nested arrays
flatMap() – Map + flatten
reduce() – Reduce to single value
reduceRight() – Reduce from right
forEach() – Loop (no return)
5. IMMUTABLE (Modern Non-Mutating Methods)
toReversed()
toSorted()
toSpliced()
with()
join()
toString()
toLocaleString()
About
JS array methods
Resources
Stars
Watchers
Forks
You can’t perform that action at this time.