Get function arguments, useful for and used in dependency injectors. Works for regular functions, generator functions and arrow functions.