@adcp/sdk API Reference - v7.9.0
    Preparing search index...

    Function getOptionalAssets

    • Get only optional assets from a Format

      Note: When using deprecated assets_required, this will always return empty since assets_required only contained required assets.

      Parameters

      • format: Format

        The Format object

      Returns FormatAssetSlot[]

      Array of optional assets only

      const optionalAssets = getOptionalAssets(format);
      console.log(`Can optionally provide ${optionalAssets.length} additional assets`);