mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-17 13:13:49 +01:00
9 lines
323 B
TypeScript
9 lines
323 B
TypeScript
/**
|
|
* Checks whether the value passed in can be considered a string.
|
|
* @param value The value to check if it is a string.
|
|
*/
|
|
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
|
|
export function isString(value: any): boolean {
|
|
return (typeof value === "string" || value instanceof String);
|
|
}
|