# hasExtension abstract method

bool hasExtension(

1. List<String> exts

)

Checks whether the asset’s path ends with any of the provided extensions.

This is useful for filtering specific types of files (e.g., `.json`, `.yaml`, `.properties`).

### Example

    if (resource.hasExtension([".json", ".yaml"])) {
      print("This is a supported config file");
    }

## Implementation

    bool hasExtension(List<String> exts);