Bump to v3.4.0.

This commit is contained in:
jdalton
2015-02-28 23:03:50 -08:00
parent cc16e113c2
commit 4881dda9d1
49 changed files with 868 additions and 588 deletions

View File

@@ -55,8 +55,11 @@ var baseCallback = require('../internal/baseCallback'),
* // => ['barney', 'fred', 'pebbles']
*/
function sortBy(collection, iteratee, thisArg) {
if (collection == null) {
return [];
}
var index = -1,
length = collection ? collection.length : 0,
length = collection.length,
result = isLength(length) ? Array(length) : [];
if (thisArg && isIterateeCall(collection, iteratee, thisArg)) {