@shopify/cli-kit
    Preparing search index...

    Function isSubpath

    • Given 2 paths, it returns whether the second path is a subpath of the first path.

      Parameters

      • mainPath: string

        The main path.

      • subpath: string

        The subpath.

      Returns boolean

      Whether the subpath is a subpath of the main path.