From cc77eb7855ad20048ed1eb846585439ef02c441f Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Thu, 3 Sep 2015 09:04:26 -0700 Subject: [PATCH] Change `augment` to `modify`. [ci skip] --- lodash.js | 10 +++++----- test/test.js | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/lodash.js b/lodash.js index 90c0c15c6..ceb97a362 100644 --- a/lodash.js +++ b/lodash.js @@ -573,7 +573,7 @@ * for equality comparisons. * * @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 {*} value The value to assign. */ @@ -589,7 +589,7 @@ * This function is like `assignValue` except that it doesn't assign `undefined` values. * * @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 {*} value The value to assign. */ @@ -4204,7 +4204,7 @@ * Merging metadata reduces the number of wrappers required to invoke a function. * This is possible because methods like `_.bind`, `_.curry`, and `_.partial` * 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 * common case where curried functions have `_.ary` and or `_.rearg` applied. * @@ -9745,7 +9745,7 @@ * @static * @memberOf _ * @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 {*} value The value to set. * @returns {Object} Returns `object`. @@ -9774,7 +9774,7 @@ * @static * @memberOf _ * @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 {*} value The value to set. * @param {Function} [customizer] The function to customize assigned values. diff --git a/test/test.js b/test/test.js index 0334e2c08..9bf8d5a7f 100644 --- a/test/test.js +++ b/test/test.js @@ -350,7 +350,7 @@ * See https://code.google.com/p/v8/issues/detail?id=1623 * * @private - * @param {Object} object The object augment. + * @param {Object} object The object modify. * @param {string} key The name of the property to set. * @param {*} value The property value. */ @@ -8190,7 +8190,7 @@ 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 = [ { 'a': { 'b': 2, 'c': 3 } }, { 'a': 1, 'b': 2 }, @@ -9434,7 +9434,7 @@ 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 = [ { 'a': { 'b': 2, 'c': 3 } }, { 'a': 1, 'b': 2 }, @@ -9761,7 +9761,7 @@ 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) { var object = _.cloneDeep(source), matches = _.matchesProperty('a', source); @@ -14811,7 +14811,7 @@ 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 = {}; _.template('', options); deepEqual(options, {});