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

    Variable crushConst

    crush: <TValue extends object>(value: TValue) => object

    Flattens a deep object to a single demension, converting the keys to dot notation.

    Type declaration

      • <TValue extends object>(value: TValue): object
      • Type Parameters

        • TValue extends object

        Parameters

        Returns object

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