๐array methods
JS โฉ object โฉ built-in โฉ Array โฉ methods
๐ฐ accessing elements
push() - append element.
pop() - remove and return last element.
unshift() - prepend element.
shift() - remove and return first element.
splice - delete/insert elements.
filter elements
filter - "holes" are removed automatically.
combine elements
join - ้ฃๆฅๆๆๅ ็ด ใๅไฝตๆไธๅๅญไธฒใ
reduce((result, element, index, array) => {...}) -
reduceRight - reduce array from highest index to lowest. (from right to left)
find & search elements
sort elements
reverse - reverse an array in place.
transform arrays/elements
Last updated