Files
openzeppelin-contracts/test/helpers/map-values.js
Hadrien Croubois 30c3c6c16e Clean up after merging master into next-v5.0 (#3956)
Co-authored-by: Francisco <fg@frang.io>
2023-01-14 21:19:47 -03:00

8 lines
146 B
JavaScript

function mapValues(obj, fn) {
return Object.fromEntries(Object.entries(obj).map(([k, v]) => [k, fn(v)]));
}
module.exports = {
mapValues,
};