text: import { unionWith as _unionWith } from 'lodash'
  import { apply } from 'immutadot/core'
  
  /**
   * This method is like {@link array.union} except that it accepts <code>comparator</code> to compare elements.
   * @function
   * @memberof array
   * @param {Object} object The object to modify.
   * @param {Array|string} path The path of the property to set.
   * @param {...Array} [arrays] The arrays to inspect.
   * @param {Function} [comparator] The comparator invoked per element.
   * @return {Object} Returns the updated object.
   * @example unionWith({ nested: { prop: [{ x: 1 }, { x: 2 }] } }, 'nested.prop', [{ x: 2 }, { x: 3 }], (a, b) => a.x === b.x) // => { nested: { prop: [{ x: 1 }, { x: 2 }, { x: 3 }] } }
   * @see {@link https://lodash.com/docs#unionWith|lodash.unionWith} for more information.
   * @since 1.0.0
   */
  const unionWith = apply(_unionWith, { arity: 2 })
  
  export { unionWith }
  