Skip to main content
Version: 2.11

Map Values Of Object

Enables to iterate through entries (key, value) of the object and change values using lambda

Description

Creates an object with the same keys as the 'Source' object and the values generated by running each property of the object through the 'Iteratee'.

Example:

  • inputs

    • source = { "user": "barney", "age": 36, "active": true }
    • iteratee = (key, value, object) => key 'Concat' value
  • outputs

    • result = { "user": "userbarney", "age": "age36", "active": "activetrue" }

Inputs

  • Source (Object): The object to iterate over
  • Iteratee (Object Iteratee): The predicate function is invoked for each entry (key, value).
    Inputs:
    - key (string): The current property of the object.
    - value (object): The properties' value.
    - object (Object): The current object.

    Outputs:
    - result (Object): Updated value.

Outputs

  • Result (Object): The new mapped object in JSON
  • Error Flow (Error Flow): Triggered by providing an incorrect json string or object