• Get all primitive non-object values in the specified object hierarchy up to the specified depth.

    Parameters

    • obj: object

      Object from which to get the values

    • depth: number = -1

      Max object depth to go down the tree

    Returns any[]