---
title: "duplicate item · RUAL Documentation"
description: "Duplicates a given item of the array."
canonical: https://docs.rual.nl/block-types/array/array_duplicate_item
language: en
---

# duplicate item

This block is part of the [`array`](https://docs.rual.nl/block-types/array) group and was last modified in core [`v10.4.28`](https://docs.rual.nl/core-versions/100428).

### Type Selection Required

This block requires you to select the data type you want to work with. You must manually select the type using the type selector modal. To access the modal, click the white button on the block.

### Field Selection Required

This block requires field selection (in). You must manually select the fields you want to work with using the field selector modal. To access the modal, click the white button on the block.

Duplicates a given item of the array.

- times required `number` Times to duplicate the given item.

- output `array` Output array with the duplicated items.

Outputs an array containing the connected item repeated times times. All entries reference the SAME value, not independent copies; a times of 0 or less yields an empty array. When several item pins are connected, the last non-null one in pin order wins.

A typical wiring for [duplicate item](https://docs.rual.nl/block-types/array/array_duplicate_item): the `array` out pin feeds [length](https://docs.rual.nl/block-types/array/array_length).

![Studio canvas example for the duplicate item block: typical wiring for duplicate item.](https://docs.rual.nl/canvas-examples/array_duplicate_item.png)

### Version history

Introduced in [`v10.4.28`](https://docs.rual.nl/core-versions/100428).
