Skip to content

deepDuplicateArray #28

Open
Open
@CMEONE

Description

@CMEONE

We should have a method that duplicates an array and all subarrays, like this:

helpful.deepDuplicateArray([1, 2, [3, 4], 5]) => [1, 2, [3, 4], 5]

We encourage using the existing duplicateArray method and recursion to create the deepDuplicateArray method.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions