mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-03 08:37:49 +00:00
Ensure underscore builds use basicFlatten.
Former-commit-id: 148f37a27467391e9719fb098acb75ebac256f1b
This commit is contained in:
8
dist/lodash.underscore.js
vendored
8
dist/lodash.underscore.js
vendored
@@ -380,7 +380,7 @@
|
||||
var value = array[index];
|
||||
// recursively flatten arrays (susceptible to call stack limits)
|
||||
if (value && typeof value == 'object' && (isArray(value) || isArguments(value))) {
|
||||
push.apply(result, isShallow ? value : basicFlatten(value));
|
||||
push.apply(result, isShallow ? value : basicFlatten(value, isShallow, isArgArrays));
|
||||
} else if (!isArgArrays) {
|
||||
result.push(value);
|
||||
}
|
||||
@@ -1379,7 +1379,7 @@
|
||||
*/
|
||||
function omit(object) {
|
||||
var indexOf = getIndexOf(),
|
||||
props = flatten(nativeSlice.call(arguments, 1)),
|
||||
props = basicFlatten(arguments, true, false, 1),
|
||||
result = {};
|
||||
|
||||
forIn(object, function(value, key) {
|
||||
@@ -1445,7 +1445,7 @@
|
||||
*/
|
||||
function pick(object) {
|
||||
var index = -1,
|
||||
props = flatten(nativeSlice.call(arguments, 1)),
|
||||
props = basicFlatten(arguments, true, false, 1),
|
||||
length = props.length,
|
||||
result = {};
|
||||
|
||||
@@ -2546,7 +2546,7 @@
|
||||
var index = -1,
|
||||
indexOf = getIndexOf(),
|
||||
length = array.length,
|
||||
flattened = flatten(nativeSlice.call(arguments, 1)),
|
||||
flattened = basicFlatten(arguments, true, true, 1),
|
||||
result = [];
|
||||
|
||||
while (++index < length) {
|
||||
|
||||
Reference in New Issue
Block a user