From 2947fac51457559463896493b6967582644296ef Mon Sep 17 00:00:00 2001 From: jdalton Date: Sun, 24 May 2015 13:03:17 -0700 Subject: [PATCH] Bump to v3.7.3. --- README.md | 2 +- lodash.set/README.md | 4 ++-- lodash.set/index.js | 6 +++--- lodash.set/package.json | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 5e1226543..de6c09279 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# lodash v3.7.2 +# lodash v3.7.3 The [lodash](https://lodash.com/) library exported as [npm packages](https://www.npmjs.com/browse/keyword/lodash-modularized) per method. diff --git a/lodash.set/README.md b/lodash.set/README.md index aa5b2ce64..857d19b25 100644 --- a/lodash.set/README.md +++ b/lodash.set/README.md @@ -1,4 +1,4 @@ -# lodash.set v3.7.2 +# lodash.set v3.7.3 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.set` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var set = require('lodash.set'); ``` -See the [documentation](https://lodash.com/docs#set) or [package source](https://github.com/lodash/lodash/blob/3.7.2-npm-packages/lodash.set) for more details. +See the [documentation](https://lodash.com/docs#set) or [package source](https://github.com/lodash/lodash/blob/3.7.3-npm-packages/lodash.set) for more details. diff --git a/lodash.set/index.js b/lodash.set/index.js index 67bb60e31..154792cd3 100644 --- a/lodash.set/index.js +++ b/lodash.set/index.js @@ -1,5 +1,5 @@ /** - * lodash 3.7.2 (Custom Build) + * lodash 3.7.3 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation * Based on Underscore.js 1.8.3 @@ -123,13 +123,13 @@ function set(object, path, value) { var index = -1, length = path.length, - endIndex = length - 1, + lastIndex = length - 1, nested = object; while (nested != null && ++index < length) { var key = path[index]; if (isObject(nested)) { - if (index == endIndex) { + if (index == lastIndex) { nested[key] = value; } else if (nested[key] == null) { nested[key] = isIndex(path[index + 1]) ? [] : {}; diff --git a/lodash.set/package.json b/lodash.set/package.json index 926a866e3..ab2b47010 100644 --- a/lodash.set/package.json +++ b/lodash.set/package.json @@ -1,6 +1,6 @@ { "name": "lodash.set", - "version": "3.7.2", + "version": "3.7.3", "description": "The modern build of lodash’s `_.set` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg",