TS-Scribe - v1.2.0
    Preparing search index...

    Namespace objectDeepMerge

    Create a pre-configured deep-merge function with custom options.

    This is the recommended way to use non-default merge behaviour (e.g. array concatenation or a custom depth limit). It avoids the ambiguity of detecting an options bag among the objects to merge.

    Merge options to apply.

    A function that accepts one or more objects and returns their deep merge using the given options.

    const merge = objectDeepMerge.withOptions({ arrayMerge: 'concat' });
    merge({ tags: ['js'] }, { tags: ['css'] });
    // { tags: ['js', 'css'] }
    const merge = objectDeepMerge.withOptions({ maxDepth: 10 });
    merge(deepA, deepB);

    Functions

    withOptions