Find Minimum In Array Javascript Function Types In Mathematics