[refactor] Moved "isString()" to its own TS file

This commit is contained in:
Steven Evans
2018-07-04 00:33:55 -04:00
parent 187b5051b9
commit a6293474a9
10 changed files with 21 additions and 14 deletions
+7
View File
@@ -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);
}