A structure-preserving object from a source data towards a target data.
The keys of the schema match the desired destination structure. Each value corresponds to an Action applied by Morphism when iterating over the input data
Generated using TypeDoc
An Array of String that allows to perform a function over source property
const source = { foo: 'foo', bar: 'bar' }; let schema = { fooAndBar: ['foo', 'bar'] // Grab these properties into fooAndBar }; morphism(schema, source); //=> { fooAndBar: { foo: 'foo', bar: 'bar' } }