> For AI agents: the complete documentation index is available at https://massaman.dev/llms.txt, the full documentation bundle is available at https://massaman.dev/llms-full.txt.

# toBoolean

Converts a value to a boolean.

Thin wrapper over `Boolean(value)` — kept as a stable surface against
future global-constructor changes.

```typescript
toBoolean(1) // true
toBoolean(0) // false
toBoolean('') // false
```

## Usage

### `toBoolean(value: unknown)`

Converts a value to a boolean.

Thin wrapper over `Boolean(value)` — kept as a stable surface against
future global-constructor changes.

```typescript
import { toBoolean } from 'massaman'
// or:  import { toBoolean } from 'massaman/conversion'

toBoolean(1) // true
toBoolean(0) // false
toBoolean('') // false
```

#### Parameters


valueunknownrequired

the value to convert.

#### Returns

the input value converted using JavaScript boolean coercion.

```typescript
boolean
```
