• Preparing search index...
  • The search index is not available
@salesforce/ts-types
  • @salesforce/ts-types
  • asJsonArray

Function asJsonArray

  • asJsonArray(value): Optional<JsonArray>
  • Narrows an AnyJson value to a JsonArray if it is type-compatible, or returns undefined otherwise.

    Parameters

    • value: Optional<AnyJson>

      The value to test.

    Returns Optional<JsonArray>

    • Defined in narrowing/as.ts:217
  • asJsonArray(value, defaultValue): JsonArray
  • Narrows an AnyJson value to a JsonArray if it is type-compatible, or returns the provided default otherwise.

    Parameters

    • value: Optional<AnyJson>

      The value to test.

    • defaultValue: JsonArray

      The default to return if the value was undefined or of the incorrect type.

    Returns JsonArray

    • Defined in narrowing/as.ts:224

Settings

Member Visibility
@salesforce/ts-types
  • Loading...