Mode calculator

Calculates and returns the mode of the numbers given

Usage

As seen in the commented portion of code, this function can take either an array of numbers, or multiple parameters of numbers. *note* returns the "first" key that is a mode, only one is returned regardless of uniqueness.

 

Comments