Skip to content

Feature request - mergeWith #134

Description

@JustinMartinDev

Hello

I would like to know, if you planning to create a mergeWith function allowing to customize the merge function. The perfect use exemple is to merge nested array :

mergeWith(
 { a: [1, 2] }, 
 { a: [3, 4] }, 
 (a, b) => Array.isArray(a) && Array.isArray(b) => [...a, ...b] : undefined
) 
// => { a: [1, 2, 3, 4] } 

lodash doc: https://lodash.com/docs/4.17.15#mergeWith

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions