The opposite of crush, given an object that was crushed into key paths and values will return the original object reconstructed.
construct({ name: 'ra', 'children.0.name': 'hathor' })// { name: 'ra', children: [{ name: 'hathor' }] } Copy
construct({ name: 'ra', 'children.0.name': 'hathor' })// { name: 'ra', children: [{ name: 'hathor' }] }
Description
The opposite of crush, given an object that was crushed into key paths and values will return the original object reconstructed.
Example