Skip to main content

key by

Create an object from a list by a key

Holly Conrad Smith avatar
Written by Holly Conrad Smith
Updated over 2 weeks ago

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?