Function isSvelteComponent

  • Provides basic duck typing to determine if the provided function is a constructor function for a Svelte component.

    Parameters

    • comp: any

      Data to check as a Svelte component.

    Returns boolean

    Whether basic duck typing succeeds.