Bump to v3.5.1.

This commit is contained in:
jdalton
2015-05-01 08:06:51 -07:00
committed by John-David Dalton
parent a9ec8d953c
commit 9f7937cb84
7 changed files with 24 additions and 31 deletions

View File

@@ -1,4 +1,4 @@
# lodash._basesortbyorder v3.5.0
# lodash._basesortbyorder v3.5.1
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodashs](https://lodash.com/) internal `baseSortByOrder` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module.
@@ -17,4 +17,4 @@ In Node.js/io.js:
var baseSortByOrder = require('lodash._basesortbyorder');
```
See the [package source](https://github.com/lodash/lodash/blob/3.5.0-npm-packages/lodash._basesortbyorder) for more details.
See the [package source](https://github.com/lodash/lodash/blob/3.5.1-npm-packages/lodash._basesortbyorder) for more details.

View File

@@ -1,5 +1,5 @@
/**
* lodash 3.5.0 (Custom Build) <https://lodash.com/>
* lodash 3.5.1 (Custom Build) <https://lodash.com/>
* Build: `lodash modern modularize exports="npm" -o ./`
* Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
@@ -69,8 +69,7 @@ var MAX_SAFE_INTEGER = Math.pow(2, 53) - 1;
*/
function baseMap(collection, iteratee) {
var index = -1,
length = getLength(collection),
result = isLength(length) ? Array(length) : [];
result = isArrayLike(collection) ? Array(collection.length) : [];
baseEach(collection, function(value, key, collection) {
result[++index] = iteratee(value, key, collection);
@@ -119,7 +118,7 @@ function baseSortByOrder(collection, iteratees, orders) {
* Gets the "length" property value of `object`.
*
* **Note:** This function is used to avoid a [JIT bug](https://bugs.webkit.org/show_bug.cgi?id=142792)
* in Safari on iOS 8.1 ARM64.
* that affects Safari on at least iOS 8.1-8.3 ARM64.
*
* @private
* @param {Object} object The object to query.
@@ -127,6 +126,17 @@ function baseSortByOrder(collection, iteratees, orders) {
*/
var getLength = baseProperty('length');
/**
* Checks if `value` is array-like.
*
* @private
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is array-like, else `false`.
*/
function isArrayLike(value) {
return value != null && isLength(getLength(value));
}
/**
* Checks if `value` is a valid array-like length.
*

View File

@@ -1,6 +1,6 @@
{
"name": "lodash._basesortbyorder",
"version": "3.5.0",
"version": "3.5.1",
"description": "The modern build of lodashs internal `baseSortByOrder` as a module.",
"homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg",