Find Unique Value In Array Javascript Function Types In Mathematics