does this really have to be in the API? ub the 1d case is easy enough to do the limiting yourself should you need it.
for multidimensional arrays so it will produce a flattend results even for for axis != None.

if left in it should probably support only an lower or only an upper bound too. Also overwrite_input can be set to True if its not None as it requires a copy anyway.