Function tryGetExtension

Returns the file extension for a given asset

The file extension, if resolvable (no . included)

  • Parameters

    Returns undefined | string

    Returns undefined instead of throwing if a value cannot be resolved