Skip to content
On this page

Athena.utility.math

Variables

default

default: Object

Type declaration

NameType
getMissingNumber(arr: number[], startIndex?: number) => number

Defined in

server/utility/math.ts:25

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

NameTypeDefault value
arrnumber[]undefined
startIndex?number0

Returns

number

Defined in

server/utility/math.ts:10

Created by Stuyk | Est. 2020