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