JavaScript Array Methods

Original Data Array:

Result: