Skip to main content
isStringObject - node__util--types.d.ts - Node documentation
function isStringObject

Usage in Deno

```typescript import { isStringObject } from "node:node__util--types.d.ts"; ```
isStringObject(object: unknown): object is String
Returns `true` if the value is a string object, e.g. created by `new String()`. ```js util.types.isStringObject('foo'); // Returns false util.types.isStringObject(new String('foo')); // Returns true ```

Parameters

object: unknown

Return Type

object is String