Change augment to modify. [ci skip]

This commit is contained in:
John-David Dalton
2015-09-03 09:04:26 -07:00
parent 8e9f9f6f2f
commit cc77eb7855
2 changed files with 10 additions and 10 deletions

View File

@@ -573,7 +573,7 @@
* for equality comparisons. * for equality comparisons.
* *
* @private * @private
* @param {Object} object The object to augment. * @param {Object} object The object to modify.
* @param {string} key The key of the property to assign. * @param {string} key The key of the property to assign.
* @param {*} value The value to assign. * @param {*} value The value to assign.
*/ */
@@ -589,7 +589,7 @@
* This function is like `assignValue` except that it doesn't assign `undefined` values. * This function is like `assignValue` except that it doesn't assign `undefined` values.
* *
* @private * @private
* @param {Object} object The object to augment. * @param {Object} object The object to modify.
* @param {string} key The key of the property to assign. * @param {string} key The key of the property to assign.
* @param {*} value The value to assign. * @param {*} value The value to assign.
*/ */
@@ -4204,7 +4204,7 @@
* Merging metadata reduces the number of wrappers required to invoke a function. * Merging metadata reduces the number of wrappers required to invoke a function.
* This is possible because methods like `_.bind`, `_.curry`, and `_.partial` * This is possible because methods like `_.bind`, `_.curry`, and `_.partial`
* may be applied regardless of execution order. Methods like `_.ary` and `_.rearg` * may be applied regardless of execution order. Methods like `_.ary` and `_.rearg`
* augment function arguments, making the order in which they are executed important, * modify function arguments, making the order in which they are executed important,
* preventing the merging of metadata. However, we make an exception for a safe * preventing the merging of metadata. However, we make an exception for a safe
* common case where curried functions have `_.ary` and or `_.rearg` applied. * common case where curried functions have `_.ary` and or `_.rearg` applied.
* *
@@ -9745,7 +9745,7 @@
* @static * @static
* @memberOf _ * @memberOf _
* @category Object * @category Object
* @param {Object} object The object to augment. * @param {Object} object The object to modify.
* @param {Array|string} path The path of the property to set. * @param {Array|string} path The path of the property to set.
* @param {*} value The value to set. * @param {*} value The value to set.
* @returns {Object} Returns `object`. * @returns {Object} Returns `object`.
@@ -9774,7 +9774,7 @@
* @static * @static
* @memberOf _ * @memberOf _
* @category Object * @category Object
* @param {Object} object The object to augment. * @param {Object} object The object to modify.
* @param {Array|string} path The path of the property to set. * @param {Array|string} path The path of the property to set.
* @param {*} value The value to set. * @param {*} value The value to set.
* @param {Function} [customizer] The function to customize assigned values. * @param {Function} [customizer] The function to customize assigned values.

View File

@@ -350,7 +350,7 @@
* See https://code.google.com/p/v8/issues/detail?id=1623 * See https://code.google.com/p/v8/issues/detail?id=1623
* *
* @private * @private
* @param {Object} object The object augment. * @param {Object} object The object modify.
* @param {string} key The name of the property to set. * @param {string} key The name of the property to set.
* @param {*} value The property value. * @param {*} value The property value.
*/ */
@@ -8190,7 +8190,7 @@
strictEqual(matches({ 'b': 2 }), false); strictEqual(matches({ 'b': 2 }), false);
}); });
test('should not change match behavior if `source` is augmented', 9, function() { test('should not change match behavior if `source` is modified', 9, function() {
var sources = [ var sources = [
{ 'a': { 'b': 2, 'c': 3 } }, { 'a': { 'b': 2, 'c': 3 } },
{ 'a': 1, 'b': 2 }, { 'a': 1, 'b': 2 },
@@ -9434,7 +9434,7 @@
strictEqual(matches(object3), false); strictEqual(matches(object3), false);
}); });
test('should not change match behavior if `source` is augmented', 9, function() { test('should not change match behavior if `source` is modified', 9, function() {
var sources = [ var sources = [
{ 'a': { 'b': 2, 'c': 3 } }, { 'a': { 'b': 2, 'c': 3 } },
{ 'a': 1, 'b': 2 }, { 'a': 1, 'b': 2 },
@@ -9761,7 +9761,7 @@
strictEqual(matches({ 'a': object3 }), false); strictEqual(matches({ 'a': object3 }), false);
}); });
test('should not change match behavior if `value` is augmented', 9, function() { test('should not change match behavior if `value` is modified', 9, function() {
_.each([{ 'a': { 'b': 2, 'c': 3 } }, { 'a': 1, 'b': 2 }, { 'a': 1 }], function(source, index) { _.each([{ 'a': { 'b': 2, 'c': 3 } }, { 'a': 1, 'b': 2 }, { 'a': 1 }], function(source, index) {
var object = _.cloneDeep(source), var object = _.cloneDeep(source),
matches = _.matchesProperty('a', source); matches = _.matchesProperty('a', source);
@@ -14811,7 +14811,7 @@
strictEqual(_.template(object)(data), '1'); strictEqual(_.template(object)(data), '1');
}); });
test('should not augment the `options` object', 1, function() { test('should not modify the `options` object', 1, function() {
var options = {}; var options = {};
_.template('', options); _.template('', options);
deepEqual(options, {}); deepEqual(options, {});