From 4ef16c96e5f4c9ee340b661882abd59886c546fd Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Sun, 26 Jul 2015 12:21:59 -0700 Subject: [PATCH] Bump to v3.10.1. --- README.md | 10 +++++----- array/flatten.js | 2 +- array/indexOf.js | 2 +- array/sortedIndex.js | 2 +- array/uniq.js | 2 +- chain/wrapperReverse.js | 2 +- collection/includes.js | 4 ++-- collection/invoke.js | 2 +- function/after.js | 2 +- function/before.js | 2 +- function/debounce.js | 2 +- function/defer.js | 2 +- function/delay.js | 2 +- function/restParam.js | 2 +- function/spread.js | 2 +- index.js | 4 ++-- internal/baseUniq.js | 2 +- internal/getFuncName.js | 2 +- internal/isLaziable.js | 7 ++++--- internal/lazyValue.js | 2 +- internal/sortedUniq.js | 2 +- lang/clone.js | 6 +++--- lang/cloneDeep.js | 6 +++--- lang/isEmpty.js | 2 +- lang/isEqual.js | 6 +++--- lang/isFunction.js | 2 +- lang/isMatch.js | 2 +- math/max.js | 2 +- math/min.js | 2 +- number/inRange.js | 2 +- object/assign.js | 2 +- object/get.js | 2 +- object/merge.js | 2 +- object/pick.js | 2 +- object/result.js | 2 +- object/set.js | 2 +- package.json | 2 +- utility/attempt.js | 2 +- utility/propertyOf.js | 2 +- utility/range.js | 2 +- 40 files changed, 55 insertions(+), 54 deletions(-) diff --git a/README.md b/README.md index 189265e7a..fd98e5c98 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# lodash v3.10.0 +# lodash v3.10.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash](https://lodash.com/) exported as [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) modules. @@ -28,7 +28,7 @@ var array = require('lodash/array'); var chunk = require('lodash/array/chunk'); ``` -See the [package source](https://github.com/lodash/lodash/tree/3.10.0-npm) for more details. +See the [package source](https://github.com/lodash/lodash/tree/3.10.1-npm) for more details. **Note:**
Don’t assign values to the [special variable](http://nodejs.org/api/repl.html#repl_repl_features) `_` when in the REPL.
@@ -39,8 +39,8 @@ Install [n_](https://www.npmjs.com/package/n_) for a REPL that includes lodash b lodash is also available in a variety of other builds & module formats. * npm packages for [modern](https://www.npmjs.com/package/lodash), [compatibility](https://www.npmjs.com/package/lodash-compat), & [per method](https://www.npmjs.com/browse/keyword/lodash-modularized) builds - * AMD modules for [modern](https://github.com/lodash/lodash/tree/3.10.0-amd) & [compatibility](https://github.com/lodash/lodash-compat/tree/3.10.0-amd) builds - * ES modules for the [modern](https://github.com/lodash/lodash/tree/3.10.0-es) build + * AMD modules for [modern](https://github.com/lodash/lodash/tree/3.10.1-amd) & [compatibility](https://github.com/lodash/lodash-compat/tree/3.10.1-amd) builds + * ES modules for the [modern](https://github.com/lodash/lodash/tree/3.10.1-es) build ## Further Reading @@ -117,5 +117,5 @@ lodash is also available in a variety of other builds & module formats. ## Support -Tested in Chrome 42-43, Firefox 37-38, IE 6-11, MS Edge, Opera 28-29, Safari 5-8, ChakraNode 0.12.2, io.js 2.3.1, Node.js 0.8.28, 0.10.38, & 0.12.5, PhantomJS 1.9.8, RingoJS 0.11, & Rhino 1.7.6. +Tested in Chrome 43-44, Firefox 38-39, IE 6-11, MS Edge, Safari 5-8, ChakraNode 0.12.2, io.js 2.5.0, Node.js 0.8.28, 0.10.40, & 0.12.7, PhantomJS 1.9.8, RingoJS 0.11, & Rhino 1.7.6. Automated [browser](https://saucelabs.com/u/lodash) & [CI](https://travis-ci.org/lodash/lodash/) test runs are available. Special thanks to [Sauce Labs](https://saucelabs.com/) for providing automated browser testing. diff --git a/array/flatten.js b/array/flatten.js index 65bbeefb7..dc2eff868 100644 --- a/array/flatten.js +++ b/array/flatten.js @@ -3,7 +3,7 @@ var baseFlatten = require('../internal/baseFlatten'), /** * Flattens a nested array. If `isDeep` is `true` the array is recursively - * flattened, otherwise it is only flattened a single level. + * flattened, otherwise it's only flattened a single level. * * @static * @memberOf _ diff --git a/array/indexOf.js b/array/indexOf.js index bad310761..4cfc68231 100644 --- a/array/indexOf.js +++ b/array/indexOf.js @@ -7,7 +7,7 @@ var nativeMax = Math.max; /** * Gets the index at which the first occurrence of `value` is found in `array` * using [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero) - * for equality comparisons. If `fromIndex` is negative, it is used as the offset + * for equality comparisons. If `fromIndex` is negative, it's used as the offset * from the end of `array`. If `array` is sorted providing `true` for `fromIndex` * performs a faster binary search. * diff --git a/array/sortedIndex.js b/array/sortedIndex.js index 51d150e3b..6903bca43 100644 --- a/array/sortedIndex.js +++ b/array/sortedIndex.js @@ -3,7 +3,7 @@ var createSortedIndex = require('../internal/createSortedIndex'); /** * Uses a binary search to determine the lowest index at which `value` should * be inserted into `array` in order to maintain its sort order. If an iteratee - * function is provided it is invoked for `value` and each element of `array` + * function is provided it's invoked for `value` and each element of `array` * to compute their sort ranking. The iteratee is bound to `thisArg` and * invoked with one argument; (value). * diff --git a/array/uniq.js b/array/uniq.js index f81a2b968..ae937efdf 100644 --- a/array/uniq.js +++ b/array/uniq.js @@ -8,7 +8,7 @@ var baseCallback = require('../internal/baseCallback'), * [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero) * for equality comparisons, in which only the first occurence of each element * is kept. Providing `true` for `isSorted` performs a faster search algorithm - * for sorted arrays. If an iteratee function is provided it is invoked for + * for sorted arrays. If an iteratee function is provided it's invoked for * each element in the array to generate the criterion by which uniqueness * is computed. The `iteratee` is bound to `thisArg` and invoked with three * arguments: (value, index, array). diff --git a/chain/wrapperReverse.js b/chain/wrapperReverse.js index f2b3d19c1..6ba546de4 100644 --- a/chain/wrapperReverse.js +++ b/chain/wrapperReverse.js @@ -26,7 +26,7 @@ function wrapperReverse() { var value = this.__wrapped__; var interceptor = function(value) { - return (wrapped && wrapped.__dir__ < 0) ? value : value.reverse(); + return value.reverse(); }; if (value instanceof LazyWrapper) { var wrapped = value; diff --git a/collection/includes.js b/collection/includes.js index 482e42d11..329486a53 100644 --- a/collection/includes.js +++ b/collection/includes.js @@ -10,9 +10,9 @@ var baseIndexOf = require('../internal/baseIndexOf'), var nativeMax = Math.max; /** - * Checks if `value` is in `collection` using + * Checks if `target` is in `collection` using * [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero) - * for equality comparisons. If `fromIndex` is negative, it is used as the offset + * for equality comparisons. If `fromIndex` is negative, it's used as the offset * from the end of `collection`. * * @static diff --git a/collection/invoke.js b/collection/invoke.js index a1f8a2019..6e7172195 100644 --- a/collection/invoke.js +++ b/collection/invoke.js @@ -7,7 +7,7 @@ var baseEach = require('../internal/baseEach'), /** * Invokes the method at `path` of each element in `collection`, returning * an array of the results of each invoked method. Any additional arguments - * are provided to each invoked method. If `methodName` is a function it is + * are provided to each invoked method. If `methodName` is a function it's * invoked for, and `this` bound to, each element in `collection`. * * @static diff --git a/function/after.js b/function/after.js index e6a5de407..96a51fdbc 100644 --- a/function/after.js +++ b/function/after.js @@ -6,7 +6,7 @@ var nativeIsFinite = global.isFinite; /** * The opposite of `_.before`; this method creates a function that invokes - * `func` once it is called `n` or more times. + * `func` once it's called `n` or more times. * * @static * @memberOf _ diff --git a/function/before.js b/function/before.js index dd1d03bca..3d9421682 100644 --- a/function/before.js +++ b/function/before.js @@ -3,7 +3,7 @@ var FUNC_ERROR_TEXT = 'Expected a function'; /** * Creates a function that invokes `func`, with the `this` binding and arguments - * of the created function, while it is called less than `n` times. Subsequent + * of the created function, while it's called less than `n` times. Subsequent * calls to the created function return the result of the last `func` invocation. * * @static diff --git a/function/debounce.js b/function/debounce.js index caf2a69d0..163af90f3 100644 --- a/function/debounce.js +++ b/function/debounce.js @@ -32,7 +32,7 @@ var nativeMax = Math.max; * @param {boolean} [options.leading=false] Specify invoking on the leading * edge of the timeout. * @param {number} [options.maxWait] The maximum time `func` is allowed to be - * delayed before it is invoked. + * delayed before it's invoked. * @param {boolean} [options.trailing=true] Specify invoking on the trailing * edge of the timeout. * @returns {Function} Returns the new debounced function. diff --git a/function/defer.js b/function/defer.js index 369790ce6..3accbf9b1 100644 --- a/function/defer.js +++ b/function/defer.js @@ -3,7 +3,7 @@ var baseDelay = require('../internal/baseDelay'), /** * Defers invoking the `func` until the current call stack has cleared. Any - * additional arguments are provided to `func` when it is invoked. + * additional arguments are provided to `func` when it's invoked. * * @static * @memberOf _ diff --git a/function/delay.js b/function/delay.js index 955b059e7..d5eef27a9 100644 --- a/function/delay.js +++ b/function/delay.js @@ -3,7 +3,7 @@ var baseDelay = require('../internal/baseDelay'), /** * Invokes `func` after `wait` milliseconds. Any additional arguments are - * provided to `func` when it is invoked. + * provided to `func` when it's invoked. * * @static * @memberOf _ diff --git a/function/restParam.js b/function/restParam.js index 3a1c15707..8852286dd 100644 --- a/function/restParam.js +++ b/function/restParam.js @@ -8,7 +8,7 @@ var nativeMax = Math.max; * Creates a function that invokes `func` with the `this` binding of the * created function and arguments from `start` and beyond provided as an array. * - * **Note:** This method is based on the [rest parameter](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/rest_parameters). + * **Note:** This method is based on the [rest parameter](https://developer.mozilla.org/Web/JavaScript/Reference/Functions/rest_parameters). * * @static * @memberOf _ diff --git a/function/spread.js b/function/spread.js index aad4b7147..780f5042a 100644 --- a/function/spread.js +++ b/function/spread.js @@ -5,7 +5,7 @@ var FUNC_ERROR_TEXT = 'Expected a function'; * Creates a function that invokes `func` with the `this` binding of the created * function and an array of arguments much like [`Function#apply`](https://es5.github.io/#x15.3.4.3). * - * **Note:** This method is based on the [spread operator](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Spread_operator). + * **Note:** This method is based on the [spread operator](https://developer.mozilla.org/Web/JavaScript/Reference/Operators/Spread_operator). * * @static * @memberOf _ diff --git a/index.js b/index.js index be768eef1..5f17319b9 100644 --- a/index.js +++ b/index.js @@ -1,6 +1,6 @@ /** * @license - * lodash 3.10.0 (Custom Build) + * lodash 3.10.1 (Custom Build) * Build: `lodash modern -d -o ./index.js` * Copyright 2012-2015 The Dojo Foundation * Based on Underscore.js 1.8.3 @@ -13,7 +13,7 @@ var undefined; /** Used as the semantic version number. */ - var VERSION = '3.10.0'; + var VERSION = '3.10.1'; /** Used to compose bitmasks for wrapper metadata. */ var BIND_FLAG = 1, diff --git a/internal/baseUniq.js b/internal/baseUniq.js index 4a7c254a7..a043443f2 100644 --- a/internal/baseUniq.js +++ b/internal/baseUniq.js @@ -12,7 +12,7 @@ var LARGE_ARRAY_SIZE = 200; * @private * @param {Array} array The array to inspect. * @param {Function} [iteratee] The function invoked per iteration. - * @returns {Array} Returns the new duplicate-value-free array. + * @returns {Array} Returns the new duplicate free array. */ function baseUniq(array, iteratee) { var index = -1, diff --git a/internal/getFuncName.js b/internal/getFuncName.js index 2ea73a6cd..ed92867d6 100644 --- a/internal/getFuncName.js +++ b/internal/getFuncName.js @@ -8,7 +8,7 @@ var realNames = require('./realNames'); * @returns {string} Returns the function name. */ function getFuncName(func) { - var result = func.name, + var result = (func.name + ''), array = realNames[result], length = array ? array.length : 0; diff --git a/internal/isLaziable.js b/internal/isLaziable.js index a0f14702b..475fab1be 100644 --- a/internal/isLaziable.js +++ b/internal/isLaziable.js @@ -11,11 +11,12 @@ var LazyWrapper = require('./LazyWrapper'), * @returns {boolean} Returns `true` if `func` has a lazy counterpart, else `false`. */ function isLaziable(func) { - var funcName = getFuncName(func); - if (!(funcName in LazyWrapper.prototype)) { + var funcName = getFuncName(func), + other = lodash[funcName]; + + if (typeof other != 'function' || !(funcName in LazyWrapper.prototype)) { return false; } - var other = lodash[funcName]; if (func === other) { return true; } diff --git a/internal/lazyValue.js b/internal/lazyValue.js index 44aa377ee..8de68e672 100644 --- a/internal/lazyValue.js +++ b/internal/lazyValue.js @@ -37,7 +37,7 @@ function lazyValue() { takeCount = nativeMin(length, this.__takeCount__); if (!isArr || arrLength < LARGE_ARRAY_SIZE || (arrLength == length && takeCount == length)) { - return baseWrapperValue((isRight && isArr) ? array.reverse() : array, this.__actions__); + return baseWrapperValue(array, this.__actions__); } var result = []; diff --git a/internal/sortedUniq.js b/internal/sortedUniq.js index 22887eb28..3ede46a19 100644 --- a/internal/sortedUniq.js +++ b/internal/sortedUniq.js @@ -5,7 +5,7 @@ * @private * @param {Array} array The array to inspect. * @param {Function} [iteratee] The function invoked per iteration. - * @returns {Array} Returns the new duplicate-value-free array. + * @returns {Array} Returns the new duplicate free array. */ function sortedUniq(array, iteratee) { var seen, diff --git a/lang/clone.js b/lang/clone.js index 0a972eae5..85ee8fe00 100644 --- a/lang/clone.js +++ b/lang/clone.js @@ -4,10 +4,10 @@ var baseClone = require('../internal/baseClone'), /** * Creates a clone of `value`. If `isDeep` is `true` nested objects are cloned, - * otherwise they are assigned by reference. If `customizer` is provided it is + * otherwise they are assigned by reference. If `customizer` is provided it's * invoked to produce the cloned values. If `customizer` returns `undefined` * cloning is handled by the method instead. The `customizer` is bound to - * `thisArg` and invoked with two argument; (value [, index|key, object]). + * `thisArg` and invoked with up to three argument; (value [, index|key, object]). * * **Note:** This method is loosely based on the * [structured clone algorithm](http://www.w3.org/TR/html5/infrastructure.html#internal-structured-cloning-algorithm). @@ -63,7 +63,7 @@ function clone(value, isDeep, customizer, thisArg) { isDeep = false; } return typeof customizer == 'function' - ? baseClone(value, isDeep, bindCallback(customizer, thisArg, 1)) + ? baseClone(value, isDeep, bindCallback(customizer, thisArg, 3)) : baseClone(value, isDeep); } diff --git a/lang/cloneDeep.js b/lang/cloneDeep.js index a458141e8..c4d2517a1 100644 --- a/lang/cloneDeep.js +++ b/lang/cloneDeep.js @@ -2,10 +2,10 @@ var baseClone = require('../internal/baseClone'), bindCallback = require('../internal/bindCallback'); /** - * Creates a deep clone of `value`. If `customizer` is provided it is invoked + * Creates a deep clone of `value`. If `customizer` is provided it's invoked * to produce the cloned values. If `customizer` returns `undefined` cloning * is handled by the method instead. The `customizer` is bound to `thisArg` - * and invoked with two argument; (value [, index|key, object]). + * and invoked with up to three argument; (value [, index|key, object]). * * **Note:** This method is loosely based on the * [structured clone algorithm](http://www.w3.org/TR/html5/infrastructure.html#internal-structured-cloning-algorithm). @@ -48,7 +48,7 @@ var baseClone = require('../internal/baseClone'), */ function cloneDeep(value, customizer, thisArg) { return typeof customizer == 'function' - ? baseClone(value, true, bindCallback(customizer, thisArg, 1)) + ? baseClone(value, true, bindCallback(customizer, thisArg, 3)) : baseClone(value, true); } diff --git a/lang/isEmpty.js b/lang/isEmpty.js index 2144afd94..6b344a0b3 100644 --- a/lang/isEmpty.js +++ b/lang/isEmpty.js @@ -7,7 +7,7 @@ var isArguments = require('./isArguments'), keys = require('../object/keys'); /** - * Checks if `value` is empty. A value is considered empty unless it is an + * Checks if `value` is empty. A value is considered empty unless it's an * `arguments` object, array, string, or jQuery-like collection with a length * greater than `0` or an object with own enumerable properties. * diff --git a/lang/isEqual.js b/lang/isEqual.js index f2cb5d863..41bf568df 100644 --- a/lang/isEqual.js +++ b/lang/isEqual.js @@ -3,10 +3,10 @@ var baseIsEqual = require('../internal/baseIsEqual'), /** * Performs a deep comparison between two values to determine if they are - * equivalent. If `customizer` is provided it is invoked to compare values. + * equivalent. If `customizer` is provided it's invoked to compare values. * If `customizer` returns `undefined` comparisons are handled by the method - * instead. The `customizer` is bound to `thisArg` and invoked with three - * arguments: (value, other [, index|key]). + * instead. The `customizer` is bound to `thisArg` and invoked with up to + * three arguments: (value, other [, index|key]). * * **Note:** This method supports comparing arrays, booleans, `Date` objects, * numbers, `Object` objects, regexes, and strings. Objects are compared by diff --git a/lang/isFunction.js b/lang/isFunction.js index 37e1a2d74..abe5668ec 100644 --- a/lang/isFunction.js +++ b/lang/isFunction.js @@ -31,7 +31,7 @@ var objToString = objectProto.toString; function isFunction(value) { // The use of `Object#toString` avoids issues with the `typeof` operator // in older versions of Chrome and Safari which return 'function' for regexes - // and Safari 8 equivalents which return 'object' for typed array constructors. + // and Safari 8 which returns 'object' for typed array constructors. return isObject(value) && objToString.call(value) == funcTag; } diff --git a/lang/isMatch.js b/lang/isMatch.js index cb48436a4..0a51d4920 100644 --- a/lang/isMatch.js +++ b/lang/isMatch.js @@ -5,7 +5,7 @@ var baseIsMatch = require('../internal/baseIsMatch'), /** * Performs a deep comparison between `object` and `source` to determine if * `object` contains equivalent property values. If `customizer` is provided - * it is invoked to compare values. If `customizer` returns `undefined` + * it's invoked to compare values. If `customizer` returns `undefined` * comparisons are handled by the method instead. The `customizer` is bound * to `thisArg` and invoked with three arguments: (value, other, index|key). * diff --git a/math/max.js b/math/max.js index 194c80069..220c1050d 100644 --- a/math/max.js +++ b/math/max.js @@ -6,7 +6,7 @@ var NEGATIVE_INFINITY = Number.NEGATIVE_INFINITY; /** * Gets the maximum value of `collection`. If `collection` is empty or falsey - * `-Infinity` is returned. If an iteratee function is provided it is invoked + * `-Infinity` is returned. If an iteratee function is provided it's invoked * for each value in `collection` to generate the criterion by which the value * is ranked. The `iteratee` is bound to `thisArg` and invoked with three * arguments: (value, index, collection). diff --git a/math/min.js b/math/min.js index 8a98a85aa..6d92d4fa8 100644 --- a/math/min.js +++ b/math/min.js @@ -6,7 +6,7 @@ var POSITIVE_INFINITY = Number.POSITIVE_INFINITY; /** * Gets the minimum value of `collection`. If `collection` is empty or falsey - * `Infinity` is returned. If an iteratee function is provided it is invoked + * `Infinity` is returned. If an iteratee function is provided it's invoked * for each value in `collection` to generate the criterion by which the value * is ranked. The `iteratee` is bound to `thisArg` and invoked with three * arguments: (value, index, collection). diff --git a/number/inRange.js b/number/inRange.js index 2ee832528..30bf798ac 100644 --- a/number/inRange.js +++ b/number/inRange.js @@ -4,7 +4,7 @@ var nativeMax = Math.max, /** * Checks if `n` is between `start` and up to but not including, `end`. If - * `end` is not specified it is set to `start` with `start` then set to `0`. + * `end` is not specified it's set to `start` with `start` then set to `0`. * * @static * @memberOf _ diff --git a/object/assign.js b/object/assign.js index 424e7edf9..4a765ed54 100644 --- a/object/assign.js +++ b/object/assign.js @@ -5,7 +5,7 @@ var assignWith = require('../internal/assignWith'), /** * Assigns own enumerable properties of source object(s) to the destination * object. Subsequent sources overwrite property assignments of previous sources. - * If `customizer` is provided it is invoked to produce the assigned values. + * If `customizer` is provided it's invoked to produce the assigned values. * The `customizer` is bound to `thisArg` and invoked with five arguments: * (objectValue, sourceValue, key, object, source). * diff --git a/object/get.js b/object/get.js index 0bb59b8dc..7e88f1e96 100644 --- a/object/get.js +++ b/object/get.js @@ -26,7 +26,7 @@ var baseGet = require('../internal/baseGet'), * // => 'default' */ function get(object, path, defaultValue) { - var result = object == null ? undefined : baseGet(object, toPath(path), path + ''); + var result = object == null ? undefined : baseGet(object, toPath(path), (path + '')); return result === undefined ? defaultValue : result; } diff --git a/object/merge.js b/object/merge.js index dc0b95eff..86dd8af97 100644 --- a/object/merge.js +++ b/object/merge.js @@ -5,7 +5,7 @@ var baseMerge = require('../internal/baseMerge'), * Recursively merges own enumerable properties of the source object(s), that * don't resolve to `undefined` into the destination object. Subsequent sources * overwrite property assignments of previous sources. If `customizer` is - * provided it is invoked to produce the merged values of the destination and + * provided it's invoked to produce the merged values of the destination and * source properties. If `customizer` returns `undefined` merging is handled * by the method instead. The `customizer` is bound to `thisArg` and invoked * with five arguments: (objectValue, sourceValue, key, object, source). diff --git a/object/pick.js b/object/pick.js index c880c319b..e3187669a 100644 --- a/object/pick.js +++ b/object/pick.js @@ -7,7 +7,7 @@ var baseFlatten = require('../internal/baseFlatten'), /** * Creates an object composed of the picked `object` properties. Property * names may be specified as individual arguments or as arrays of property - * names. If `predicate` is provided it is invoked for each property of `object` + * names. If `predicate` is provided it's invoked for each property of `object` * picking the properties `predicate` returns truthy for. The predicate is * bound to `thisArg` and invoked with three arguments: (value, key, object). * diff --git a/object/result.js b/object/result.js index 05ca6df66..29b38e6e3 100644 --- a/object/result.js +++ b/object/result.js @@ -7,7 +7,7 @@ var baseGet = require('../internal/baseGet'), /** * This method is like `_.get` except that if the resolved value is a function - * it is invoked with the `this` binding of its parent object and its result + * it's invoked with the `this` binding of its parent object and its result * is returned. * * @static diff --git a/object/set.js b/object/set.js index 423faab82..7a1e4e9ba 100644 --- a/object/set.js +++ b/object/set.js @@ -5,7 +5,7 @@ var isIndex = require('../internal/isIndex'), /** * Sets the property value of `path` on `object`. If a portion of `path` - * does not exist it is created. + * does not exist it's created. * * @static * @memberOf _ diff --git a/package.json b/package.json index 1986951b4..b9cb65b29 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "lodash", - "version": "3.10.0", + "version": "3.10.1", "description": "The modern build of lodash modular utilities.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/utility/attempt.js b/utility/attempt.js index 80afe6924..8d8fb9810 100644 --- a/utility/attempt.js +++ b/utility/attempt.js @@ -3,7 +3,7 @@ var isError = require('../lang/isError'), /** * Attempts to invoke `func`, returning either the result or the caught error - * object. Any additional arguments are provided to `func` when it is invoked. + * object. Any additional arguments are provided to `func` when it's invoked. * * @static * @memberOf _ diff --git a/utility/propertyOf.js b/utility/propertyOf.js index 093c65978..593a266b1 100644 --- a/utility/propertyOf.js +++ b/utility/propertyOf.js @@ -23,7 +23,7 @@ var baseGet = require('../internal/baseGet'), */ function propertyOf(object) { return function(path) { - return baseGet(object, toPath(path), path + ''); + return baseGet(object, toPath(path), (path + '')); }; } diff --git a/utility/range.js b/utility/range.js index e45254e7f..671939afc 100644 --- a/utility/range.js +++ b/utility/range.js @@ -6,7 +6,7 @@ var nativeCeil = Math.ceil, /** * Creates an array of numbers (positive and/or negative) progressing from - * `start` up to, but not including, `end`. If `end` is not specified it is + * `start` up to, but not including, `end`. If `end` is not specified it's * set to `start` with `start` then set to `0`. If `end` is less than `start` * a zero-length range is created unless a negative `step` is specified. *