Bump to v4.0.0.

This commit is contained in:
John-David Dalton
2015-12-16 17:53:20 -08:00
parent 94d714007e
commit 8c26e6fd4c
656 changed files with 16423 additions and 11602 deletions

View File

@@ -1,7 +1,7 @@
define(['./toObject'], function(toObject) {
define([], function() {
/**
* Creates a base function for `_.forIn` or `_.forInRight`.
* Creates a base function for methods like `_.forIn`.
*
* @private
* @param {boolean} [fromRight] Specify iterating from right to left.
@@ -9,13 +9,13 @@ define(['./toObject'], function(toObject) {
*/
function createBaseFor(fromRight) {
return function(object, iteratee, keysFunc) {
var iterable = toObject(object),
var index = -1,
iterable = Object(object),
props = keysFunc(object),
length = props.length,
index = fromRight ? length : -1;
length = props.length;
while ((fromRight ? index-- : ++index < length)) {
var key = props[index];
while (length--) {
var key = props[fromRight ? length : ++index];
if (iteratee(iterable[key], key, iterable) === false) {
break;
}