Get Minimum Value From Array Javascript Methods Syntax