UNPKG

superfuse-wizard

Version:

Interactive smart contract generator based on Superchain 's interoperability standard.

11 lines (10 loc) 224 B
export function mapValues<K extends keyof any, V, W>( obj: Record<K, V>, fn: (val: V) => W, ): Record<K, W> { const res = {} as Record<K, W>; for (const key in obj) { res[key] = fn(obj[key]); } return res; }