Sha256: 24f701b9157908b81ec3842db0dbe420302f0f27aa9df02836fbf1743a95c0ee

Contents?: true

Size: 1.07 KB

Versions: 31

Compression:

Stored size: 1.07 KB

Contents

/* */ 
"format cjs";
"use strict";

exports.__esModule = true;
// istanbul ignore next

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

var _lodashObjectMerge = require("lodash/object/merge");

var _lodashObjectMerge2 = _interopRequireDefault(_lodashObjectMerge);

/**
 * Merge options.
 */

exports["default"] = function (dest, src) {
  if (!dest || !src) return;

  return _lodashObjectMerge2["default"](dest, src, function (a, b) {
    if (b && Array.isArray(a)) {
      var c = a.slice(0);
      for (var _iterator = b, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) {
        var _ref;

        if (_isArray) {
          if (_i >= _iterator.length) break;
          _ref = _iterator[_i++];
        } else {
          _i = _iterator.next();
          if (_i.done) break;
          _ref = _i.value;
        }

        var v = _ref;

        if (a.indexOf(v) < 0) {
          c.push(v);
        }
      }
      return c;
    }
  });
};

module.exports = exports["default"];

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
sequenceserver-3.1.3 public/vendor/npm/babel-core@5.8.23/lib/helpers/merge.js
sequenceserver-3.1.2 public/vendor/npm/babel-core@5.8.23/lib/helpers/merge.js
sequenceserver-3.1.1 public/vendor/npm/babel-core@5.8.23/lib/helpers/merge.js
sequenceserver-3.1.0 public/vendor/npm/babel-core@5.8.23/lib/helpers/merge.js
sequenceserver-3.0.1 public/vendor/npm/babel-core@5.8.23/lib/helpers/merge.js
sequenceserver-3.0 public/vendor/npm/babel-core@5.8.23/lib/helpers/merge.js
sequenceserver-2.2.0 public/vendor/npm/babel-core@5.8.23/lib/helpers/merge.js
sequenceserver-2.1.0 public/vendor/npm/babel-core@5.8.23/lib/helpers/merge.js
sequenceserver-2.0.0 public/vendor/npm/babel-core@5.8.23/lib/helpers/merge.js
sequenceserver-2.0.0.rc8 public/vendor/npm/babel-core@5.8.23/lib/helpers/merge.js
sequenceserver-2.0.0.rc7 public/vendor/npm/babel-core@5.8.23/lib/helpers/merge.js
sequenceserver-2.0.0.rc6 public/vendor/npm/babel-core@5.8.23/lib/helpers/merge.js
sequenceserver-2.0.0.rc5 public/vendor/npm/babel-core@5.8.23/lib/helpers/merge.js
sequenceserver-2.0.0.rc4 public/vendor/npm/babel-core@5.8.23/lib/helpers/merge.js
sequenceserver-2.0.0.rc3 public/vendor/npm/babel-core@5.8.23/lib/helpers/merge.js
sequenceserver-2.0.0.rc2 public/vendor/npm/babel-core@5.8.23/lib/helpers/merge.js
sequenceserver-2.0.0.rc1 public/vendor/npm/babel-core@5.8.23/lib/helpers/merge.js
sequenceserver-2.0.0.beta4 public/vendor/npm/babel-core@5.8.23/lib/helpers/merge.js
sequenceserver-2.0.0.beta3 public/vendor/npm/babel-core@5.8.23/lib/helpers/merge.js
sequenceserver-2.0.0.beta1 public/vendor/npm/babel-core@5.8.23/lib/helpers/merge.js