ComputerScience101 Interpret API Documentation Function Parameters
A visual mnemonic to keep in your mind for interpreting API documentation function parameters is
required [optional] <required>
Simply put, square brackets ( [] ) around an argument indicate that the argument is optional, while angle braces is used for mandatory parameters except the case that angle braces were enclosed by outer bracket braces such as:
[<optional>, <but both needed>]
which means both of the parameters are optional. But if the second parameter is specified, the first parameters becomes required.