Skip to content

construct

The opposite of crush, given an object that was crushed into key paths and values will return the original object reconstructed.

Usage

construct({ name: "ra", "children.0.name": "hathor" }); // { name: 'ra', children: [{ name: 'hathor' }] }

Installation

Terminal window
npx atmx add helper construct