mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-21 08:42:53 +02:00
Minor bugfixes with killing Netscript scripts, and cleaned up text
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* Checks that a variable is a valid number. A valid number
|
||||
* must be a "number" type and cannot be NaN
|
||||
*/
|
||||
export function isValidNumber(n: number): boolean {
|
||||
return (typeof n === "number") && !isNaN(n);
|
||||
}
|
||||
Reference in New Issue
Block a user