Function.apply()

Can somebody please detail for me what the first parameter in Function.apply() is used for? Whenever I try to use the method I get a stack overflow error and I’m not sure why I’m using it incorrectly. My code is fairly huge but I will explain it in a following post if this isn’t a common error or there’s a simple fix that I’ve overlooked.

Thanks