UNPKG

@nomiclabs/buidler

Version:

Buidler is an extensible developer tool that helps smart contract developers increase productivity by reliably bringing together the tools they want.

9 lines (8 loc) 182 B
export function fromEntries<T = any>(entries: Array<[string, any]>): T { return Object.assign( {}, ...entries.map(([name, value]) => ({ [name]: value, })) ); }