Function isReference

  • Checks whether or not the given source is a Sanity reference (an object containing _ref string key)

    Parameters

    • ref: unknown

      Possible reference

    Returns ref is SanityReference

    Whether or not the passed object is a reference