• Recursively generates the paths for all keys in an object or array, formatted as dot notation.

    Parameters

    • obj: any

      The object or array for which to generate key paths.

    • OptionalparentKey: string

      The key or path of the parent object, used to build the complete key paths.

    Returns (undefined | string)[]

    An array of strings representing the paths of the keys in dot notation.