We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6355919 commit 39a9582Copy full SHA for 39a9582
1 file changed
packages/type/src/is/lib/is-string.func.ts
@@ -11,7 +11,7 @@ import { ResultCallback } from '../../type/result-callback.type';
11
* @param value Any `value` to check.
12
* @param callback `ResultCallback` function to handle result before returns.
13
* @callback `resultCallback`.
14
- * @returns A `boolean` indicating whether or not the `value` is a `string`.
+ * @returns A `boolean` indicating whether or not the `value` is a `string` type or `String` object.
15
*/
16
export const isString: IsString = (value: any, callback: ResultCallback = resultCallback): value is string =>
17
callback(typeOf(value) === 'string' && (isStringType(value) || isStringObject(value)), value);
0 commit comments