Sanity Library Reference Docs
    Preparing search index...

    Function isSlug

    • Checks whether the given thing is a slug, eg an object with a current string property.

      Parameters

      • thing: unknown

        The thing to check

      Returns thing is Slug

      True if slug, false otherwise