I think Mathematica’s documentation is beyond excellent. Here is the documentation for the Flatten function:
https://reference.wolfram.com/language/ref/Flatten.html
Just look at the amount of examples and details for this function. It is like that for every function.