Function isPortableTextSpan

  • Strict check to determine if node is a correctly formatted Portable Text span.

    Parameters

    • node: PortableTextSpan | ArbitraryTypedObject

      Node to check

    Returns node is PortableTextSpan

    True if valid Portable Text span, otherwise false