- Updates handling of empty arrays. Rather than returning the original array, an empty array is returned.
- This simplifies and fixes the type signature.
- Updates handling of empty arrays. Rather than
throw
ing, the original array is returned.
Initial implementation