Skip to main content

Function: findNestedObjectPropertyByNamePath()

function findNestedObjectPropertyByNamePath(
objectExpression: Readonly<TSESTree.ObjectExpression>,
propertyNamePath: readonly string[]
): Property | null;

Defined in: _internal/docusaurus-config-ast.ts:545

Resolve a nested property by a sequence of object-property names.

Parametersโ€‹

objectExpressionโ€‹

Readonly<TSESTree.ObjectExpression>

propertyNamePathโ€‹

readonly string[]

Returnsโ€‹

Property | null