From 8c168dd1b8395adf2a931a0622b6ede2a96af851 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Sun, 24 Jul 2016 22:37:22 -0700 Subject: [PATCH] Bump to v3.3.7. --- README.md | 2 +- lodash.fill/README.md | 4 ++-- lodash.fill/index.js | 40 +++++++++++++++++++--------------------- lodash.fill/package.json | 2 +- 4 files changed, 23 insertions(+), 25 deletions(-) diff --git a/README.md b/README.md index da1533de7..8c4cf6078 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# lodash v3.3.6 +# lodash v3.3.7 The [lodash](https://lodash.com/) library exported as [npm packages](https://www.npmjs.com/browse/keyword/lodash-modularized) per method. diff --git a/lodash.fill/README.md b/lodash.fill/README.md index 070c2eb8b..f51dddc62 100644 --- a/lodash.fill/README.md +++ b/lodash.fill/README.md @@ -1,4 +1,4 @@ -# lodash.fill v3.3.6 +# lodash.fill v3.3.7 The [lodash](https://lodash.com/) method `_.fill` exported as a [Node.js](https://nodejs.org/) module. @@ -15,4 +15,4 @@ In Node.js: var fill = require('lodash.fill'); ``` -See the [documentation](https://lodash.com/docs#fill) or [package source](https://github.com/lodash/lodash/blob/3.3.6-npm-packages/lodash.fill) for more details. +See the [documentation](https://lodash.com/docs#fill) or [package source](https://github.com/lodash/lodash/blob/3.3.7-npm-packages/lodash.fill) for more details. diff --git a/lodash.fill/index.js b/lodash.fill/index.js index 440669d27..dfa2ee8c6 100644 --- a/lodash.fill/index.js +++ b/lodash.fill/index.js @@ -39,6 +39,19 @@ var reIsUint = /^(?:0|[1-9]\d*)$/; /** Built-in method references without a dependency on `root`. */ var freeParseInt = parseInt; +/** + * The base implementation of `_.property` without support for deep paths. + * + * @private + * @param {string} key The key of the property to get. + * @returns {Function} Returns the new accessor function. + */ +function baseProperty(key) { + return function(object) { + return object == null ? undefined : object[key]; + }; +} + /** Used for built-in method references. */ var objectProto = Object.prototype; @@ -50,7 +63,7 @@ var objectProto = Object.prototype; var objectToString = objectProto.toString; /** - * The base implementation of `_.clamp` which doesn't coerce arguments to numbers. + * The base implementation of `_.clamp` which doesn't coerce arguments. * * @private * @param {number} number The number to clamp. @@ -98,19 +111,6 @@ function baseFill(array, value, start, end) { return array; } -/** - * The base implementation of `_.property` without support for deep paths. - * - * @private - * @param {string} key The key of the property to get. - * @returns {Function} Returns the new accessor function. - */ -function baseProperty(key) { - return function(object) { - return object == null ? undefined : object[key]; - }; -} - /** * Gets the "length" property value of `object`. * @@ -218,8 +218,8 @@ function fill(array, value, start, end) { * @returns {boolean} Returns `true` if the values are equivalent, else `false`. * @example * - * var object = { 'user': 'fred' }; - * var other = { 'user': 'fred' }; + * var object = { 'a': 1 }; + * var other = { 'a': 1 }; * * _.eq(object, object); * // => true @@ -277,8 +277,7 @@ function isArrayLike(value) { * @since 0.1.0 * @category Lang * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is correctly classified, - * else `false`. + * @returns {boolean} Returns `true` if `value` is a function, else `false`. * @example * * _.isFunction(_); @@ -393,8 +392,7 @@ function isObjectLike(value) { * @since 4.0.0 * @category Lang * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is correctly classified, - * else `false`. + * @returns {boolean} Returns `true` if `value` is a symbol, else `false`. * @example * * _.isSymbol(Symbol.iterator); @@ -446,7 +444,7 @@ function toFinite(value) { /** * Converts `value` to an integer. * - * **Note:** This function is loosely based on + * **Note:** This method is loosely based on * [`ToInteger`](http://www.ecma-international.org/ecma-262/6.0/#sec-tointeger). * * @static diff --git a/lodash.fill/package.json b/lodash.fill/package.json index 4fdc2925f..5f5aa7bc8 100644 --- a/lodash.fill/package.json +++ b/lodash.fill/package.json @@ -1,6 +1,6 @@ { "name": "lodash.fill", - "version": "3.3.6", + "version": "3.3.7", "description": "The lodash method `_.fill` exported as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg",