lib/index.js
function zip(keys, values) {
  if (keys.length !== values.length) {
    throw Error(`Incorrect number of arguments, expected: ${keys.length}, arguments received: ${values.join(', ')}`)
  }

  return keys.reduce((all, key, idx) => ({...all, [key]: values[idx]}), {})
}
function zip(keys, values) {
  if (keys.length !== values.length) {
    throw Error(`Incorrect number of arguments, expected: ${keys.length}, arguments received: ${values.join(', ')}`)
  }

  return keys.reduce((all, key, idx) => ({...all, [key]: values[idx]}), {})
}
function zip ( keys , values ) { if ( keys . length !== values . length ) { throw Error ( ` ${ keys . length } ${ values . join ( ', ' ) } ` ) } return keys . reduce ( ( all , key , idx ) => ( { ... all , [ key ] : values [ idx ] } ) , { } ) }
Zip two arrays together, combining the keys of the
first with the values of the second one.
Zip two arrays together combining the keys of the first with the values of the second one .