@pleisto/active-support
    Preparing search index...

    Variable constructConst

    construct: <TObject extends object>(obj: TObject) => object

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

    Type declaration

      • <TObject extends object>(obj: TObject): object
      • Type Parameters

        • TObject extends object

        Parameters

        Returns object

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