ctrl + k
On This Page
Functions
Object Helpers
Object helpers provide utilities for working with objects in templates.
Functions
arrayFromObject
Converts an object to an array for use with {#each}
.
Template Syntax
Parameters
Name | Type | Description |
---|---|---|
obj | object | The object to convert |
Returns
array
- An array of key-value pair objects.
Example
object
Can be used to pass arbitrary data as an object to other functions.
Template Syntax
Parameters
Name | Type | Description |
---|---|---|
obj | object | The object to create |
Returns
object
- The created object.