from functools import reduce


def is_armstrong(number: int) -> bool:
    """Detects if a given number is Armstrong number.

    Args:
        number: for a check.

    Returns:
        True if number is Armstrong number, otherwise False.
    """
    return number == reduce(
        lambda x, y: x + y, [int(digit) ** len(str(number)) for digit in str(number)]
    )