Function isPropertyPathPrefix

  • 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, 0 equals -0, and numeric NaN segments compare as equal. Numeric and string segments remain distinct.

    Invalid path values return false rather than throwing, matching predicate conventions.

    Parameters

    Returns boolean

    Whether prefix is an exact structural prefix of path.