We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Method isInstanceOf (used in each method) doesn't work correctly for arrays created in a different frame. See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/isArray
isInstanceOf
each
Array.isArray is the better alternative but is not implemented in all browser so I would suggest following:
function isArray(obj) { if (Array.isArray && Array.isArray(obj)) { return true; } if (isInstanceOf(obj, Arr)) { return true; } if (Object.prototype.toString.call(obj) === "[object Array]") { return true; } return false; } }
The text was updated successfully, but these errors were encountered:
Could you help to make a PR for it?
Sorry, something went wrong.
Of course. I will make a PR this evening.
Successfully merging a pull request may close this issue.
Method
isInstanceOf
(used ineach
method) doesn't work correctly for arrays created in a different frame.See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/isArray
Array.isArray is the better alternative but is not implemented in all browser so I would suggest following:
The text was updated successfully, but these errors were encountered: