Function isURLSnak

  • Tests if a snak is a URLSnak.

    Parameters

    • snak: Snak

      The snak to check.

    Returns snak is URLSnak

    True if the snak is a URLSnak.

    if (isURLSnak(snak)) {
    // Do something
    }