Maps the contents of data using mapper as a structured set of map functions.
data
mapper
const a = { person: { size: 20 } hello: `there`}mapObjectByObject(a, { person: { size: (value, context) => { return value * 2 } }});// Yields: { person: { size: 40 }, hello: `there` } Copy
const a = { person: { size: 20 } hello: `there`}mapObjectByObject(a, { person: { size: (value, context) => { return value * 2 } }});// Yields: { person: { size: 40 }, hello: `there` }
Maps the contents of
data
usingmapper
as a structured set of map functions.