lib/object.js
function $zip(params) {
    if (
        Array.isArray(params) &&
        params.every(p => Array.isArray(p) && p.length === 2)
    ) {
        return params.reduce((o, p) => Object.assign(o, { [p[0]]: p[1] }), {});
    }
    throw new Error('$zip expects an array of two-element-array');
}
function $zip(params) {
    if (
        Array.isArray(params) &&
        params.every(p => Array.isArray(p) && p.length === 2)
    ) {
        return params.reduce((o, p) => Object.assign(o, { [p[0]]: p[1] }), {});
    }
    throw new Error('$zip expects an array of two-element-array');
}
function $zip ( params ) { if ( Array . isArray ( params ) && params . every ( p => Array . isArray ( p ) && p . length === 2 ) ) { return params . reduce ( ( o , p ) => Object . assign ( o , { [ p [ 0 ] ] : p [ 1 ] } ) , { } ) ; } throw new Error ( '$zip expects an array of two-element-array' ) ; }
Merge a series of key-value pairs into an object

@param {[any, any][]} params
@returns {any}
Merge a series of key - value pairs into an object