In my project I have extended Array like so:
Array.prototype.first = function () {}
The loop starting on line 24 also loops prototype extensions, which leads to a "is not a function" error.
This patch checks that k is a string before proceeding to use it.
In my project I have extended Array like so:
Array.prototype.first = function () {}
The loop starting on line 24 also loops prototype extensions, which leads to a "is not a function" error. This patch checks that k is a string before proceeding to use it.