In my project I have extended Array like so:
Array.prototype.first = function ();
This causes an issue as the loop on Line 24 also includes Array prototype properties leading to a "is not a function error".
This pull request ensures that the function about to to be called is indeed a function first.
In my project I have extended Array like so:
Array.prototype.first = function ();
This causes an issue as the loop on Line 24 also includes Array prototype properties leading to a "is not a function error". This pull request ensures that the function about to to be called is indeed a function first.