module.exports = function fromEntries (iterable) { return [...iterable].reduce((obj, [key, val]) => { obj[key] = val return obj }, {}) }