mode
Identifies the most frequently occurring number from an array, treating numeric strings as numbers, and falls back to the last value when no number repeats.
Instructions
Calculates the mode (the number that occurs most often) from an Array of numbers. Strings that can be converted to numbers are allowed, but formatting such as commas are NOT supported. If multiple instances of the same number are passed in separately, one as a string and one as a number, they will be counted as instances of the same number. If no numbers occur more than once, the last number in the array will be returned.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||