• Returns the .rule array of the RecipeRule object that is stored at the given path.

    This is almost the same as getRecipeRule, except that it returns the 'rule' child of the found RecipeRule. This is a convenience function, so that you don't have to check the existence of the 'rules' child when you query it.

    Parameters

    • rules: RecipeRule[]

      The rule array to query

    • path: string

      Dot separated path to the rule to query

    Returns RecipeRule[]

    Error If no rule exists for the given path or the found rule does not have child rules.