Skip to content

array.flatten not properly flattening single item array #8272

@anderseknert

Description

@anderseknert

This flattens as intended:

array.flatten([-1, 1, [2, 2]]) #  => [-1, 1, 2, 2] 

This doesn't:

array.flatten([-1, 1, [2]]) # => [-1,1,[2]]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions