mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-02 08:07:50 +00:00
Ensure _.flatten handles empty arrays.
This commit is contained in:
@@ -1336,6 +1336,11 @@
|
||||
ok(pass);
|
||||
}
|
||||
});
|
||||
|
||||
test('should work with empty arrays', function() {
|
||||
var actual = _.flatten([[], [[]], [[], [[[]]]]]);
|
||||
deepEqual(actual, []);
|
||||
});
|
||||
}(1, 2, 3));
|
||||
|
||||
/*--------------------------------------------------------------------------*/
|
||||
|
||||
Reference in New Issue
Block a user