add prefix to values

This block is part of the array group and was last modified in core v14.0.4.

add prefix to values v14.0.4

Prepends a prefix to each value in the array.

In pins 2
  • array required
    array
  • prefix required
    value

    The value to prepend to each item

Out pins 1
  • array
    array

Returns a new array where each element is the prefix string followed by the element coerced to text with JS String() rules (null becomes "null", objects become "[object Object]", arrays comma-join). Every output element is a string. A missing or non-array input yields an empty array.

prepend

A typical wiring for add prefix to values: with values feeds the array pin; value feeds the prefix pin; the array out pin feeds length.

Studio canvas example for the add prefix to values block: typical wiring for add prefix to values.

Version history

Introduced in v14.0.4.


Back to array Return to the main group to view all sub-groups Back to array Return to the group to view all blocks within this group