Last change
on this file since 6fe77af was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
609 bytes
|
Line | |
---|
1 | var baseRest = require('./_baseRest'),
|
---|
2 | unzip = require('./unzip');
|
---|
3 |
|
---|
4 | /**
|
---|
5 | * Creates an array of grouped elements, the first of which contains the
|
---|
6 | * first elements of the given arrays, the second of which contains the
|
---|
7 | * second elements of the given arrays, and so on.
|
---|
8 | *
|
---|
9 | * @static
|
---|
10 | * @memberOf _
|
---|
11 | * @since 0.1.0
|
---|
12 | * @category Array
|
---|
13 | * @param {...Array} [arrays] The arrays to process.
|
---|
14 | * @returns {Array} Returns the new array of grouped elements.
|
---|
15 | * @example
|
---|
16 | *
|
---|
17 | * _.zip(['a', 'b'], [1, 2], [true, false]);
|
---|
18 | * // => [['a', 1, true], ['b', 2, false]]
|
---|
19 | */
|
---|
20 | var zip = baseRest(unzip);
|
---|
21 |
|
---|
22 | module.exports = zip;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.