Foundry Virtual Tabletop - API Documentation - Version 14
    Preparing search index...

    Function flattenObject

    • Flatten a possibly multidimensional object to a one-dimensional one by converting all nested keys to dot notation

      Parameters

      • obj: object

        The object to flatten

      • Optional_d: number = 0

        Track the recursion depth to prevent overflow

      Returns object

      A flattened object