Array Methods You Must Know
Arrays provide a lot of methods.
Add/ Remove Item
We already know methods that add and remove items from the beginning or the end:
arr.push(...items) – adds items to the end,
arr.pop() – extracts an
lifewithcoding.hashnode.dev3 min read