Make mergesort0 always create and return a new sorted array and mergesort1 always return undefined (i.e. sort is a side-effect)
Make mergesort0 always create and return a new sorted array and mergesort1 always return undefined (i.e. sort is a side-effect)

all3fox/algos-js