ActionFunction
A Function invoked per iteration
const source = { foo: { bar: 'bar' } }; let schema = { bar: iteratee => { // Apply a function over the source propery return iteratee.foo.bar; } }; morphism(schema, source); //=> { bar: 'bar' }
Destination / Target type
Source / Input type
Inferred result type
The current element to transform
The source input to transform
The current element transformed
Generated using TypeDoc
ActionFunction
A Function invoked per iteration
const source = { foo: { bar: 'bar' } }; let schema = { bar: iteratee => { // Apply a function over the source propery return iteratee.foo.bar; } }; morphism(schema, source); //=> { bar: 'bar' }