Suggest a function to remove elements of an array that are greater than a given limit
[1, 2, 3, 4, 5, 6, 7, 8, 9]
# Python program to remove elements of an array that are greater than a given limit

def remove_above_limit(arr, limit):
    new_arr = [x for x in arr if x <= limit]
    return new_arr