remove duplicates

This block is part of the array group and was last modified in core v10.4.28.

remove duplicates v10.4.28

Removes duplicate values from an array.

In pins 1
  • Array required
    array

    The array from which to remove duplicate values.

Out pins 1
  • Array
    array

    The array with duplicate values removed.

Keeps the FIRST occurrence of each repeated value and drops the rest. Numbers deduplicate by numeric value regardless of integer/float representation; null deduplicates too. Objects and arrays are NEVER deduplicated - every one is kept even when structurally identical.

deduplicate

A typical wiring for remove duplicates: concat feeds the array pin; the array out pin feeds length.

Studio canvas example for the remove duplicates block: typical wiring for remove duplicates.

Commonly used with

In production blueprints, this block is most often wired together with:

  • length: this block feeds into it. Returns the total length of the given array.
  • concat: feeds into this block. Returns a joined array of two or more arrays.
  • add to top of array: feeds into this block. Adds your given value to your given array.
  • set fields: this block feeds into it. Generates an array of mutations based on the given filled fields.
  • if: this block feeds into it. Conditional branching for arrays (if.. then.. else..).
  • new object: this block feeds into it. Builds a new object filled with the given fields.

Version history

Introduced in v10.4.28.


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