Skip to content Skip to sidebar Skip to footer

Javascript 'this' Overwriting In Z Combinator And Every Other Recursive Function

Background: I have a recursive function implemented by a Z-combinator as is shown here and here so it makes no use of arguments.callee since it will be deprecated in upcoming ES6.

Solution 1:

You could do the following :

var me = this;

and the pass me as an argument to the Z Combinator.

Post a Comment for "Javascript 'this' Overwriting In Z Combinator And Every Other Recursive Function"