# Module: set

## Table of contents

### Data Functions

- [default](set.md#default)

## Data Functions

### default

▸ **default**(`target`, `path`, `value`): `any`

Follows the given path through an object structure to set the given value,
creating objects within the structure as needed.

#### Parameters

| Name | Type | Description |
| :------ | :------ | :------ |
| `target` | `any` |  |
| `path` | `string` \| `string`[] |  |
| `value` | `any` | Value to set |

#### Returns

`any`

#### Defined in

[src/set.js:23](https://github.com/Twipped/js-utils/blob/9c196e3/src/set.js#L23)
