diff --git a/lodash.js b/lodash.js index e0ca33429..f43a69ed6 100644 --- a/lodash.js +++ b/lodash.js @@ -4612,7 +4612,7 @@ } /** - * Iterates over elements of `collection` returning an array of all elements + * Iterates over elements of `collection`, returning an array of all elements * the predicate returns truthy for. The predicate is bound to `thisArg` and * invoked with three arguments; (value, index|key, collection). * @@ -4903,7 +4903,7 @@ }); /** - * Invokes the method named by `methodName` on each element in the collection + * Invokes the method named by `methodName` on each element in the collection, * returning an array of the results of each invoked method. Additional arguments * is provided to each invoked method. If `methodName` is a function it is * invoked for, and `this` bound to, each element in the collection. diff --git a/test/test.js b/test/test.js index dd7488dff..5df4236ae 100644 --- a/test/test.js +++ b/test/test.js @@ -387,7 +387,7 @@ setProperty(Number, 'isFinite', _.noop); var _contains = stringProto.contains; - setProperty(stringProto, 'contains', _contains ? _.noop : Boolean); + setProperty(stringProto, 'contains', _contains ? _.noop : Boolean); var _ArrayBuffer = ArrayBuffer; setProperty(root, 'ArrayBuffer', (function() { @@ -827,7 +827,7 @@ var args = arguments; test('should return `undefined` for nonexistent keys', 1, function() { - var actual = _.at(['a', 'b', 'c'], [2, 4, 0]); + var actual = _.at(['a', 'b', 'c'], [2, 4, 0]); deepEqual(actual, ['c', undefined, 'a']); }); @@ -8438,7 +8438,7 @@ }); test('should return `undefined` for nonexistent keys', 2, function() { - var array = ['a', 'b', 'c'], + var array = ['a', 'b', 'c'], actual = _.pullAt(array, [2, 4, 0]); deepEqual(array, ['b']);