Combine keys with corresponding items in values to form and return an object.
values could be undefined may not have items corresponding to some keys but
all keys must be provided.
Values that map to the same keys are combined into an array. The check
for this incurs a performance penalty. If you are sure there are
no repetitions, pass the noRepeat flag (as a truthy value)
to skip the checks.
Combine
keyswith corresponding items invaluesto form and return an object.valuescould beundefinedmay not have items corresponding to some keys but all keys must be provided.Values that map to the same keys are combined into an array. The check for this incurs a performance penalty. If you are sure there are no repetitions, pass the
noRepeatflag (as a truthy value) to skip the checks.