mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-07 00:42:16 +02:00
Fixed doc thing
This commit is contained in:
parent
c5f1db3f85
commit
80f968b6d8
@ -515,8 +515,8 @@ export function capitalizeString(str: string, sep: string, lowerFirstChar = true
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function isNullOrUndefined(object: any): object is undefined | null {
|
export function isNullOrUndefined(object: any): object is null | undefined {
|
||||||
return null === object || undefined === object;
|
return object === null || object === undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -550,11 +550,11 @@ export function getLocalizedSpriteKey(baseKey: string) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if a number is **inclusive** between two numbers
|
* Check if a number is **inclusively** between two numbers
|
||||||
* @param num the number to check
|
* @param num - the number to check
|
||||||
* @param min the minimum value (included)
|
* @param min - the minimum value (inclusive)
|
||||||
* @param max the maximum value (included)
|
* @param max - the maximum value (inclusive)
|
||||||
* @returns `true` if number is **inclusive** between min and max
|
* @returns Whether num is no less than min and no greater than max
|
||||||
*/
|
*/
|
||||||
export function isBetween(num: number, min: number, max: number): boolean {
|
export function isBetween(num: number, min: number, max: number): boolean {
|
||||||
return min <= num && num <= max;
|
return min <= num && num <= max;
|
||||||
|
Loading…
Reference in New Issue
Block a user