<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@datashaper/schema](./schema.md) &gt; [SpreadArgs](./schema.spreadargs.md) &gt; [onehot](./schema.spreadargs.onehot.md)

## SpreadArgs.onehot property

Indicates that a onehot-style spread should be performed. This maps all unique cell values to new columns and sets the output cell value to a binary 1/0 based on column match. This is in contrast to the default spread, which just maps array values to column by index.

<b>Signature:</b>

```typescript
onehot?: boolean;
```
