map-factory
Advanced tools
Changelog
1.6.0
Added experimental mode to begin absorbing object-mapper into code base
const mapper = createMapper({ experimental:true });
Changelog
1.4.1
Fixed bug where you couldn't map from the same source field more than once.
Changelog
1.4.0
Added the chainable or()
method to select from alterate source fields.
const mapper = createMapper();
mapper
.map("occupier").or("tenant").or("leasee").to("occupier");
Changelog
1.3.0
Added the each()
method to help when working with multiple mappers and arrays.
Changelog
1.2.0
Add map method which will improve readability in some use cases Added support for fluent coding style
Changelog
1.1.0
Added feature to map.execute
which allows you to provide an existing object as the target object.