Skip to content

When merging arrays the target defaults to empty array #264

@nejcm

Description

@nejcm

I am trying to merge two array inside an object but would like to set it to fallback to source in case the target is undefined. Currently this is not doable because the target value in that case always defaults to an empty array.

This change would probably be breaking so it would be good to at least know the original value as the last additional parameter of the arrayMerge fn.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions