Sha256: 350c1dd6528b73a15f3ce3082064fbf23c0819f5c2d06b4ab24ef6b61ab863d6

Contents?: true

Size: 582 Bytes

Versions: 265

Compression:

Stored size: 582 Bytes

Contents

var baseAssignValue = require('./_baseAssignValue'),
    eq = require('./eq');

/**
 * This function is like `assignValue` except that it doesn't assign
 * `undefined` values.
 *
 * @private
 * @param {Object} object The object to modify.
 * @param {string} key The key of the property to assign.
 * @param {*} value The value to assign.
 */
function assignMergeValue(object, key, value) {
  if ((value !== undefined && !eq(object[key], value)) ||
      (value === undefined && !(key in object))) {
    baseAssignValue(object, key, value);
  }
}

module.exports = assignMergeValue;

Version data entries

265 entries across 263 versions & 29 rubygems

Version Path
clapton-0.0.13 lib/clapton/javascripts/node_modules/lodash/_assignMergeValue.js
clapton-0.0.12 lib/clapton/javascripts/node_modules/lodash/_assignMergeValue.js
clapton-0.0.11 lib/clapton/javascripts/node_modules/lodash/_assignMergeValue.js
clapton-0.0.10 lib/clapton/javascripts/node_modules/lodash/_assignMergeValue.js
clapton-0.0.9 lib/clapton/javascripts/node_modules/lodash/_assignMergeValue.js
clapton-0.0.8 lib/clapton/javascripts/node_modules/lodash/_assignMergeValue.js
clapton-0.0.7 lib/clapton/javascripts/node_modules/lodash/_assignMergeValue.js
clapton-0.0.6 lib/clapton/javascripts/node_modules/lodash/_assignMergeValue.js
clapton-0.0.5 lib/clapton/javascripts/node_modules/lodash/_assignMergeValue.js
clapton-0.0.4 lib/clapton/javascripts/node_modules/lodash/_assignMergeValue.js
clapton-0.0.3 lib/clapton/javascripts/node_modules/lodash/_assignMergeValue.js
clapton-0.0.2 lib/clapton/javascripts/node_modules/lodash/_assignMergeValue.js
clapton-0.0.1 lib/clapton/javascripts/node_modules/lodash/_assignMergeValue.js
immosquare-cleaner-0.1.47 node_modules/lodash/_assignMergeValue.js
immosquare-cleaner-0.1.46 node_modules/lodash/_assignMergeValue.js
immosquare-cleaner-0.1.45 node_modules/lodash/_assignMergeValue.js
immosquare-cleaner-0.1.44 node_modules/lodash/_assignMergeValue.js
boring_generators-0.14.0 tmp/templates/app_template/node_modules/lodash/_assignMergeValue.js
immosquare-cleaner-0.1.43 node_modules/lodash/_assignMergeValue.js
immosquare-cleaner-0.1.42 node_modules/lodash/_assignMergeValue.js