Functions that take in two parameters. a boolean and a callback. When the condition is true or not it executes the function that was passed through. If not it will instead not call the function. The two functions presented below are functions that do the same thing in reverse.
Execute If
A conditional function that will execute the callback passed to it. If the condition is true.
Usage
The below function will execute.
Execute Unless
A conditional function that will execute the callback passed to it. If the condition is not true.
Usage
The below function will not execute.
Execute If Else
A conditional function that executes one function if a condition is true another one if a condition is false. It's an overload that can either take an object or three parameters.