Skip to content

Latest commit

 

History

History
13 lines (9 loc) · 410 Bytes

arrayMethods.md

File metadata and controls

13 lines (9 loc) · 410 Bytes

Array Methods Defined

pop

Pops out the last item in an array and returns that last item.

push

Pushes in an item into an array, and returns the new item count.

shift

Similar to pop, however pops out the first element of an array and returns that first one.

unshift

Similar to push, however it pushes an item, or multiples, to the beginning of the array and returns the new item count.