from typing import List


def has_extension(filename: str, extensions: List[str]) -> bool:
    """Check whether a file has one of the specified extensions
    :param filename: The file to check
    :param extensions: The file extensions it should have, e.g. ['.md', .ipynb']

    :return: True if the extension of the filename is in the list of specified allowed extensions
    """
    extension = filename.split('.')[-1]
    return extension in extensions