Pebble App Framework: Phone API
    Preparing search index...

    Function readValue

    • Unwraps a Clay value, applying a fallback for empty values.

      Parameters

      • value: any

        The raw Clay value, which may already be unwrapped or still wrapped as an object with a value field.

      • fallback: any

        What to return when the value is missing or empty.

      Returns any

      The unwrapped value, or the fallback.