mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-04 17:07:49 +00:00
Allow _.modArgs to accept an array of transforms.
This commit is contained in:
@@ -11306,6 +11306,11 @@
|
||||
deepEqual(modded(5, 10), [10, 100]);
|
||||
});
|
||||
|
||||
test('should flatten transforms', 1, function() {
|
||||
var modded = _.modArgs(fn, [doubled, square]);
|
||||
deepEqual(modded(5, 10), [10, 100]);
|
||||
});
|
||||
|
||||
test('should not transform any argument greater than the number of transforms', 1, function() {
|
||||
var modded = _.modArgs(fn, doubled, square);
|
||||
deepEqual(modded(5, 10, 18), [10, 100, 18]);
|
||||
|
||||
Reference in New Issue
Block a user