Skip to main content

key by

Create an object from a list by a key

Written by Holly Conrad Smith

Use this when you want to convert a list into an object keyed by a property within a flow, for example creating a lookup table from a list of features.

Inputs

Name

Abbreviation

Type

Access

Description

List

L

Any

Item

The list to key

Key

K

String

Item

The key to key by

Outputs

Name

Abbreviation

Type

Access

Description

Object

O

Object

Item

The object to key


How-to

  1. Feed in a list

  2. Feed in a string to define the key

    You can use a string node or the result of any node that generates a string

  3. The result is a new object containing the key-value pair(s)

Did this answer your question?