Function shallowMerge

  • Shallow merge as in config, but on raw associative arrays

    Parameters

    • overwrite: boolean = true

      overwrite existing keys, if they exist with their subtrees

    • withAppend: boolean = false

      if a key exist append the values or drop them Combination overwrite withappend filters doubles out of merged arrays

    • Rest ...assocArrays: any[]

      array of assoc arres reduced right to left

    Returns {
        [key: string]: any;
    }

    • [key: string]: any

Generated using TypeDoc