mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-10 10:57:49 +00:00
Add variation to falsey _.slice test.
This commit is contained in:
@@ -19513,8 +19513,8 @@
|
|||||||
return value === undefined ? array : [];
|
return value === undefined ? array : [];
|
||||||
});
|
});
|
||||||
|
|
||||||
var actual = lodashStable.map(falsey, function(end) {
|
var actual = lodashStable.map(falsey, function(end, index) {
|
||||||
return _.slice(array, 0, end);
|
return index ? _.slice(array, 0, end) : _.slice(array, 0);
|
||||||
});
|
});
|
||||||
|
|
||||||
assert.deepEqual(actual, expected);
|
assert.deepEqual(actual, expected);
|
||||||
|
|||||||
Reference in New Issue
Block a user