-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrepl.txt
More file actions
34 lines (25 loc) · 732 Bytes
/
repl.txt
File metadata and controls
34 lines (25 loc) · 732 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{{alias}}( arrays, labels )
Zips one or more arrays to an array of objects.
The function assumes that the list of arrays to be zipped all have the same
length.
The number of provided array labels should equal the number of arrays to be
zipped.
Parameters
----------
arrays: ArrayLikeObject<ArrayLikeObject>
List of arrays to zip.
labels: ArrayLikeObject
List of array labels.
Returns
-------
out: Array<Object>
Output array.
Examples
--------
> var x = [ 1, 2 ];
> var y = [ 3, 4 ];
> var labels = [ 'x', 'y' ];
> var out = {{alias}}( [ x, y ], labels )
[ { 'x': 1, 'y': 3 }, { 'x': 2, 'y': 4 } ]
See Also
--------