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

Usage in Deno

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

Parameters

object: unknown

Return Type

object is Boolean