UNPKG

react-faux-dom

Version:

DOM like data structure to be mutated by D3 et al, then rendered to React elements

14 lines (10 loc) 227 B
function mapValues (source, fn) { var destination = {} for (var key in source) { if (source.hasOwnProperty(key)) { destination[key] = fn(source[key]) } } return destination } module.exports = mapValues