Bump to v3.0.1.

This commit is contained in:
jdalton
2015-01-26 20:44:45 -08:00
parent f9606b394c
commit bbec03c4d5
14 changed files with 64 additions and 47 deletions

View File

@@ -24,12 +24,12 @@ function lazyValue() {
}
var dir = this.dir,
isRight = dir < 0,
length = array.length,
view = getView(0, length, this.views),
view = getView(0, array.length, this.views),
start = view.start,
end = view.end,
length = end - start,
dropCount = this.dropCount,
takeCount = nativeMin(end - start, this.takeCount - dropCount),
takeCount = nativeMin(length, this.takeCount - dropCount),
index = isRight ? end : start - 1,
iteratees = this.iteratees,
iterLength = iteratees ? iteratees.length : 0,
@@ -65,7 +65,7 @@ function lazyValue() {
result[resIndex++] = value;
}
}
return isRight ? result.reverse() : result;
return result;
}
module.exports = lazyValue;