Primitive
object.set
BETAShort name: set
Version: 1.0.0
Return a new plain object with a top-level key set to a value.
Back to primitive libraryInputs
| Key | Type | Required | Description |
|---|---|---|---|
| key | string | true | Top-level key to set. |
| object | object | true | Source plain object. |
| value | any | true | Value to assign at key. |
Outputs
| Key | Type | Required | Description |
|---|---|---|---|
| result | object | false | New object with key assigned. |