Function formatPropertyPath

  • Stringifies and colorizes an array representing a property path.

    Example

    formatPropertyPath(["foo", "bar"]); // "foo.bar" (with colors)
    formatPropertyPath([]); // "it"

    Returns

    String with formatted path.

    Parameters

    • propertyPath: ReadOnlyArray<string>

      Path to format.

    Returns string