Gracefully handling scenarios with two outcomes is something we as developers would usually work on....Read more
Commonly used array methods.