make_map
Create Map
from a Collection
of values and keys.
Arguments
Name | Description | Type |
---|---|---|
values | Values in the new Map . | Collection |
keys | Keys used in new Map to access values . | strings |
Example
values = ['sherlock', 'john', 'james']
keys = ['first', 'second', 'third']
make_map(values, keys)
// { "first": "sherlock",
// "second": "john",
// "third": "james" }