Athena.utility.math ​
Variables ​
default ​
• default: Object
Type declaration ​
Name | Type |
---|---|
getMissingNumber | (arr : number [], startIndex? : number ) => number |
Defined in ​
Functions ​
getMissingNumber ​
Usage
Athena.utility.math.getMissingNumber(arr
, startIndex?
): number
Takes an array of numbers and attempts to determine which number is missing given a range. Returns the first missing number.
Parameters ​
Name | Type | Default value |
---|---|---|
arr | number [] | undefined |
startIndex? | number | 0 |
Returns ​
number