Function isPropertyPathPrefix
-
Parameters
- prefix: PropertyPath
Candidate prefix path.
- path: PropertyPath
Complete path that must equal or descend from
prefix.
Returns boolean
Whether
prefixis an exact structural prefix ofpath. - prefix: PropertyPath
Determines whether one property path is an exact structural prefix of another.
Both property paths are compared after normalization. Segment comparison follows native
Map/ SameValueZero semantics: strings compare by value, symbols by identity,0equals-0, and numericNaNsegments compare as equal. Numeric and string segments remain distinct.Invalid path values return
falserather than throwing, matching predicate conventions.