map

The map task maps an input to an array of values.

Potential use case

Suppose you have a list of data to input and you want to give each item in the list a numerical placement value. You could use the map task to accomplish this.

Properties

IncomingTypeDescription
arrArrayRequired. The input array (objects or values) to be mapped.
mapArrayRequired. An array of values that will be used as the map.
OutgoingTypeDescription
resultObjectThe mapped result.

Example

In this example, the arr variable is ["a","b","c"] and the values to map are the numerals [1,2,3].

map task configured with arr a b c and map values 1 2 3

The result that returns is a list of key-value items shown as ["a": 1, "b": 2, "c": 3].

map task output showing a 1 b 2 c 3 key-value pairs