Function tryGetIdFromString

Tries to cooerce a string (ID, URL or path) to an image asset ID

string

  • Parameters

    • Rest...args: [str: string]

    Returns undefined | string

    Returns undefined instead of throwing if a value cannot be resolved