mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-20 16:22:56 +02:00
[refactor] Moved "isString()" to its own TS file
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* Checks whether the value passed in can be considered a string.
|
||||
* @param value The value to check if it is a string.
|
||||
*/
|
||||
export function isString(value: any): boolean {
|
||||
return (typeof value === "string" || value instanceof String);
|
||||
}
|
||||
Reference in New Issue
Block a user