Function tryGetIdFromString

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

string

  • Parameters

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

    Returns any

    Returns undefined instead of throwing if a value cannot be resolved